Changeset 36487 in osm
- Timestamp:
- 2026-02-12T22:40:09+01:00 (39 hours ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/MicrosoftStreetside/test/unit/org/openstreetmap/josm/plugins/streetside/utils/TestUtil.java
r36228 r36487 3 3 4 4 import static org.junit.jupiter.api.Assertions.assertEquals; 5 import static org.junit.jupiter.api.Assertions.assertFalse; 5 6 import static org.junit.jupiter.api.Assertions.assertTrue; 6 7 … … 66 67 final Constructor<?> constructor = c.getDeclaredConstructors()[0]; 67 68 // constructor has to be private 68 assertTrue(!constructor.isAccessible() && Modifier.isPrivate(constructor.getModifiers())); 69 assertFalse(constructor.canAccess(null)); 70 assertTrue(Modifier.isPrivate(constructor.getModifiers())); 69 71 constructor.setAccessible(true); 72 assertTrue(constructor.canAccess(null)); 70 73 // Call private constructor for code coverage 71 74 constructor.newInstance();
Note:
See TracChangeset
for help on using the changeset viewer.
