diff options
-rw-r--r-- | ridljar/test/com/sun/star/uno/Any_Test.java | 10 | ||||
-rw-r--r-- | ridljar/test/com/sun/star/uno/UnoRuntime_Test.java | 6 |
2 files changed, 10 insertions, 6 deletions
diff --git a/ridljar/test/com/sun/star/uno/Any_Test.java b/ridljar/test/com/sun/star/uno/Any_Test.java index 9ecde9e5388e..6dc3a15b1b8d 100644 --- a/ridljar/test/com/sun/star/uno/Any_Test.java +++ b/ridljar/test/com/sun/star/uno/Any_Test.java @@ -18,18 +18,22 @@ package com.sun.star.uno; +import java.util.logging.Level; +import java.util.logging.Logger; import org.junit.Test; import static org.junit.Assert.*; public final class Any_Test { + + private static final Logger logger = Logger.getLogger(Any_Test.class.getName()); + @Test public void testAnyAny() { - boolean caught = false; try { new Any(Type.ANY, null); + fail("IllegalArgumentException expected"); } catch (IllegalArgumentException e) { - caught = true; + logger.log(Level.FINE, "IllegalArgumentException caught"); } - assertTrue(caught); } @Test public void testComplete() { diff --git a/ridljar/test/com/sun/star/uno/UnoRuntime_Test.java b/ridljar/test/com/sun/star/uno/UnoRuntime_Test.java index e92422ffa1e4..fb2afe8ae1a1 100644 --- a/ridljar/test/com/sun/star/uno/UnoRuntime_Test.java +++ b/ridljar/test/com/sun/star/uno/UnoRuntime_Test.java @@ -111,9 +111,9 @@ public final class UnoRuntime_Test { Object v1 = t1.context.getValueByName(""); Object v2 = t2.context.getValueByName(""); assertFalse(t1.context == t2.context); - assertTrue(v1 == t1); - assertTrue(v2 == t2); - assertFalse(v1 == v2); + assertSame(v1, t1); + assertSame(v2, t2); + assertNotSame(v1, v2); } private interface Ifc extends XInterface {} |