summaryrefslogtreecommitdiff
path: root/ridljar/test
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2004-02-03 12:26:46 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2004-02-03 12:26:46 +0000
commit2b2397153751a096471278f593738cc1445f8ea9 (patch)
tree33d888d85427b567c0eb67c73fc1fcf78ebea054 /ridljar/test
parent8eef854c34b46f1592560772ee87978764aa9297 (diff)
INTEGRATION: CWS sb10 (1.3.8); FILE MERGED
2003/10/31 08:36:12 sb 1.3.8.3: #112870# Ensure that getZClass always returns a normalized class (e.g., boolean.class, not Boolean.class). 2003/10/30 09:52:38 sb 1.3.8.2: RESYNC: (1.3-1.4); FILE MERGED 2003/10/30 09:20:06 sb 1.3.8.1: #112870# Removed restrictions imposed by old TypeDescription implementation.
Diffstat (limited to 'ridljar/test')
-rw-r--r--ridljar/test/com/sun/star/uno/Type_Test.java16
1 files changed, 11 insertions, 5 deletions
diff --git a/ridljar/test/com/sun/star/uno/Type_Test.java b/ridljar/test/com/sun/star/uno/Type_Test.java
index 1ef749901..9ebb83cd5 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.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: vg $ $Date: 2003-10-09 10:16:52 $
+ * last change: $Author: hr $ $Date: 2004-02-03 13:26:46 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -74,12 +74,13 @@ public final class Type_Test extends ComplexTestCase {
assure("BYTE", new Type("byte").getZClass() == byte.class);
assure("SHORT", new Type("short").getZClass() == short.class);
assure("UNSIGNED SHORT",
- new Type("unsigned short").getZClass() == null);
+ new Type("unsigned short").getZClass() == short.class);
assure("LONG", new Type("long").getZClass() == int.class);
- assure("UNSIGNED LONG", new Type("unsigned long").getZClass() == null);
+ assure("UNSIGNED LONG",
+ new Type("unsigned long").getZClass() == int.class);
assure("HYPER", new Type("hyper").getZClass() == long.class);
assure("UNSIGNED HYPER",
- new Type("unsigned hyper").getZClass() == null);
+ new Type("unsigned hyper").getZClass() == long.class);
assure("FLOAT", new Type("float").getZClass() == float.class);
assure("DOUBLE", new Type("double").getZClass() == double.class);
assure("CHAR", new Type("char").getZClass() == char.class);
@@ -118,6 +119,11 @@ public final class Type_Test extends ComplexTestCase {
new Type("com.sun.star.uno.XComponentContext",
TypeClass.INTERFACE).getZClass()
== XComponentContext.class);
+
+ assure(new Type(boolean.class).getZClass() == boolean.class);
+ assure(new Type(Boolean.class).getZClass() == boolean.class);
+ assure(new Type(boolean[].class).getZClass() == boolean[].class);
+ assure(new Type(Boolean[].class).getZClass() == boolean[].class);
}
public void testIsSupertypeOf() {