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

Method testStringReplace

test/com/sun/jna/NativeTest.java:421–426  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

419 }
420
421 public void testStringReplace() {
422 assertEquals("Bad replace", "abcdefg", Native.replace("z", "a", "zbcdefg"));
423 assertEquals("Bad replace", "abcdefg", Native.replace("z", "g", "abcdefz"));
424 assertEquals("Bad replace", "abcdefg", Native.replace("z", "d", "abczefg"));
425 assertEquals("Bad replace", "abcaefa", Native.replace("z", "a", "zbczefz"));
426 }
427
428 public void testRemoveTemporaries() throws Exception {
429 File dir = Native.getTempDir();

Callers

nothing calls this directly

Calls 1

replaceMethod · 0.95

Tested by

no test coverage detected