MCPcopy Index your code
hub / github.com/java-native-access/jna / testSystemProperty

Method testSystemProperty

test/com/sun/jna/PlatformTest.java:110–118  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

108 }
109
110 public void testSystemProperty() {
111 String demoOverride = "demoOverride";
112 assertFalse(demoOverride.equals(Platform.getNativeLibraryResourcePrefix()));
113
114 System.setProperty("jna.prefix", demoOverride);
115 assertTrue(demoOverride.equals(Platform.getNativeLibraryResourcePrefix()));
116
117 System.clearProperty("jna.prefix");
118 }
119
120 public static void main(String[] args) {
121 junit.textui.TestRunner.run(PlatformTest.class);

Callers

nothing calls this directly

Calls 3

setPropertyMethod · 0.65
equalsMethod · 0.45

Tested by

no test coverage detected