summaryrefslogtreecommitdiffstats
path: root/test/003-omnibus-opcodes/src/Monitor.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/003-omnibus-opcodes/src/Monitor.java')
-rw-r--r--test/003-omnibus-opcodes/src/Monitor.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/003-omnibus-opcodes/src/Monitor.java b/test/003-omnibus-opcodes/src/Monitor.java
index 66d7c65..506c60f 100644
--- a/test/003-omnibus-opcodes/src/Monitor.java
+++ b/test/003-omnibus-opcodes/src/Monitor.java
@@ -13,7 +13,7 @@ public class Monitor {
synchronized (obj) {
mVal++;
obj = null; // does NOT cause a failure on exit
- assert(obj == null);
+ Main.assertTrue(obj == null);
}
}
@@ -27,7 +27,7 @@ public class Monitor {
synchronized (obj) {
mVal++;
}
- assert(false);
+ Main.assertTrue(false);
} catch (NullPointerException npe) {
/* expected */
}
@@ -39,6 +39,6 @@ public class Monitor {
new Monitor().subTest();
- assert(mVal == 2);
+ Main.assertTrue(mVal == 2);
}
}