diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2003-10-09 09:16:52 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2003-10-09 09:16:52 +0000 |
commit | 81e13fa812e996c1c2aef6b83244b04712cd0589 (patch) | |
tree | 9b59eb9c3fbae18b06b5c8d901cf2611c52a1065 /ridljar/test | |
parent | 0baa829b3d7499b92f29bae0011d8d25bfd54f4f (diff) |
INTEGRATION: CWS sb8 (1.3.2); FILE MERGED
2003/08/22 09:25:40 sb 1.3.2.1: Made Type.isSupertypeOf fully reflexive.
Diffstat (limited to 'ridljar/test')
-rw-r--r-- | ridljar/test/com/sun/star/uno/Type_Test.java | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/ridljar/test/com/sun/star/uno/Type_Test.java b/ridljar/test/com/sun/star/uno/Type_Test.java index 3043851cfc62..1ef749901aa8 100644 --- a/ridljar/test/com/sun/star/uno/Type_Test.java +++ b/ridljar/test/com/sun/star/uno/Type_Test.java @@ -2,9 +2,9 @@ * * $RCSfile: Type_Test.java,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: hr $ $Date: 2003-08-13 17:23:54 $ + * last change: $Author: vg $ $Date: 2003-10-09 10:16:52 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -124,11 +124,16 @@ public final class Type_Test extends ComplexTestCase { Type ifc = new Type(com.sun.star.uno.XInterface.class); Type ctx = new Type(com.sun.star.uno.XComponentContext.class); Type exc = new Type(com.sun.star.uno.RuntimeException.class); - assure("", !Type.ANY.isSupertypeOf(ifc)); - assure("", !ifc.isSupertypeOf(Type.ANY)); - assure("", ifc.isSupertypeOf(ctx)); - assure("", !ctx.isSupertypeOf(ifc)); - assure("", ctx.isSupertypeOf(ctx)); - assure("", !ifc.isSupertypeOf(exc)); + assure("LONG :> LONG", Type.LONG.isSupertypeOf(Type.LONG)); + assure("not ANY :> XInterface", !Type.ANY.isSupertypeOf(ifc)); + assure("ANY :> ANY", Type.ANY.isSupertypeOf(Type.ANY)); + assure("not ANY :> LONG", !Type.ANY.isSupertypeOf(Type.LONG)); + assure("not XInterface :> ANY", !ifc.isSupertypeOf(Type.ANY)); + assure("XInterface :> XInterface", ifc.isSupertypeOf(ifc)); + assure("XInterface :> XComponentContext", ifc.isSupertypeOf(ctx)); + assure("not XComponentContext :> XInterface", !ctx.isSupertypeOf(ifc)); + assure("XComponentContext :> XComponentContext", + ctx.isSupertypeOf(ctx)); + assure("not XInterface :> RuntimeException", !ifc.isSupertypeOf(exc)); } } |