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
commit35918469b4612f7eabb9f32d89689be92f2c6d8f (patch)
treeaae89420321418bdc78643c793a1c6df7da148dc /ridljar
parent0398c5f15ca85eb2df7ae49fcc3c43d637ccedb0 (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 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)));
+ }
}