From 35918469b4612f7eabb9f32d89689be92f2c6d8f Mon Sep 17 00:00:00 2001 From: RĂ¼diger Timm Date: Thu, 4 May 2006 07:07:19 +0000 Subject: INTEGRATION: CWS mmt7 (1.2.2); FILE MERGED 2006/02/14 12:15:59 sb 1.2.2.1: #i60643# Added Any.complete, UnoRuntime.completeValue, extended UnoRuntime.areSame, and restructured building of ridl.jar due to new cyclic inter-package dependencies. --- ridljar/test/com/sun/star/uno/Any_Test.java | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/ridljar/test/com/sun/star/uno/Any_Test.java b/ridljar/test/com/sun/star/uno/Any_Test.java index 9a11074b9c8e..68957e59857e 100644 --- a/ridljar/test/com/sun/star/uno/Any_Test.java +++ b/ridljar/test/com/sun/star/uno/Any_Test.java @@ -4,9 +4,9 @@ * * $RCSfile: Any_Test.java,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: hr $ $Date: 2006-01-26 17:41:57 $ + * last change: $Author: rt $ $Date: 2006-05-04 08:07:19 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -39,7 +39,7 @@ import complexlib.ComplexTestCase; public final class Any_Test extends ComplexTestCase { public String[] getTestMethodNames() { - return new String[] { "testAnyAny" }; + return new String[] { "testAnyAny", "testComplete" }; } public void testAnyAny() { @@ -51,4 +51,16 @@ public final class Any_Test extends ComplexTestCase { } assure(caught); } + + public void testComplete() { + assure(Any.complete(Any.VOID) == Any.VOID); + assure( + Any.complete(new Integer(10)).equals( + new Any(Type.LONG, new Integer(10)))); + assure( + Any.complete(null).equals( + new Any(new Type(XInterface.class), null))); + XInterface x = new XInterface() {}; + assure(Any.complete(x).equals(new Any(new Type(XInterface.class), x))); + } } -- cgit