diff options
Diffstat (limited to 'test/003-omnibus-opcodes/src/InternedString.java')
-rw-r--r-- | test/003-omnibus-opcodes/src/InternedString.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/003-omnibus-opcodes/src/InternedString.java b/test/003-omnibus-opcodes/src/InternedString.java index 4baab0c..c2a2cd9 100644 --- a/test/003-omnibus-opcodes/src/InternedString.java +++ b/test/003-omnibus-opcodes/src/InternedString.java @@ -33,7 +33,7 @@ public class InternedString { s = CONST; System.gc(); // "blahblah" should disappear from the intern list - assert(strRef.get() == null); + Main.assertTrue(strRef.get() == null); } private static void testImmortalInternedString() { @@ -41,9 +41,9 @@ public class InternedString { System.gc(); // Class constant string should be entered to the interned table when // loaded - assert(CONST == CONST.intern()); + Main.assertTrue(CONST == CONST.intern()); // and it should survive the gc - assert(strRef.get() != null); + Main.assertTrue(strRef.get() != null); String s = CONST; // "Class InternedString" should remain on the intern list @@ -51,6 +51,6 @@ public class InternedString { // Kill s, otherwise the string object is still accessible from root set s = ""; System.gc(); - assert(strRef.get() == CONST); + Main.assertTrue(strRef.get() == CONST); } } |