summaryrefslogtreecommitdiff
path: root/ridljar
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2006-05-04 07:07:19 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2006-05-04 07:07:19 +0000
commit56cdc9fc1b2f8af5254fa0750a197871fffe45e1 (patch)
treef30d4945a6bb7732d4869fc51660148006e86fa1 /ridljar
parenta7da929c5b719baf69bf38be7c79a397c12f61f8 (diff)
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.
Diffstat (limited to 'ridljar')
-rw-r--r--ridljar/test/com/sun/star/uno/Any_Test.java18
1 files 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 9a11074b9..68957e598 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)));
+ }
}