diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2003-08-07 13:37:53 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2003-08-07 13:37:53 +0000 |
commit | 9b345f78fa2605bad6be6762cf5b1ddf9e8f498b (patch) | |
tree | e4c32136cc9580512a5d593b3e1c460b5751839d /ridljar/test | |
parent | d395a7b29c97f9eef8bb0211abde7b3c3c87a805 (diff) |
INTEGRATION: CWS sb5 (1.2.4); FILE MERGED
2003/06/30 15:50:59 sb 1.2.4.2: #110499# Fixed TypeDescription._initMethodTypeInfos.
2003/06/26 15:08:45 sb 1.2.4.1: #110499# Added (as yet broken) test, not yet activated.
Diffstat (limited to 'ridljar/test')
-rw-r--r-- | ridljar/test/com/sun/star/lib/uno/typedesc/TypeDescription_Test.java | 27 |
1 files changed, 23 insertions, 4 deletions
diff --git a/ridljar/test/com/sun/star/lib/uno/typedesc/TypeDescription_Test.java b/ridljar/test/com/sun/star/lib/uno/typedesc/TypeDescription_Test.java index 06fd2e36f7a0..85a96850c318 100644 --- a/ridljar/test/com/sun/star/lib/uno/typedesc/TypeDescription_Test.java +++ b/ridljar/test/com/sun/star/lib/uno/typedesc/TypeDescription_Test.java @@ -2,9 +2,9 @@ * * $RCSfile: TypeDescription_Test.java,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: vg $ $Date: 2003-05-22 09:33:37 $ + * last change: $Author: hr $ $Date: 2003-08-07 14:37:53 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -61,6 +61,8 @@ package com.sun.star.lib.uno.typedesc; +import com.sun.star.lib.uno.typeinfo.MethodTypeInfo; +import com.sun.star.lib.uno.typeinfo.TypeInfo; import com.sun.star.uno.Any; import com.sun.star.uno.IFieldDescription; import com.sun.star.uno.IMethodDescription; @@ -77,7 +79,8 @@ public final class TypeDescription_Test extends ComplexTestCase { } public String[] getTestMethodNames() { - return new String[] { "test", "testUnsigned" }; + return new String[] { "test", "testUnsigned", + "testGetMethodDescription" }; } public void test() throws Exception { @@ -175,7 +178,23 @@ public final class TypeDescription_Test extends ComplexTestCase { public void testUnsigned() throws ClassNotFoundException { assure("TypeDescription for UNSIGNED LONG", - TypeDescription.getTypeDescription(Type.UNSIGNED_LONG).getTypeName().equals("unsigned long")); + TypeDescription.getTypeDescription(Type.UNSIGNED_LONG). + getTypeName().equals("unsigned long")); + } + + public void testGetMethodDescription() { + TypeDescription td = TypeDescription.getTypeDescription(XDerived.class); + td.getMethodDescription("fn"); + } + + public interface XBase { + void fn(); + + TypeInfo[] UNOTYPEINFO = { new MethodTypeInfo("fn", 0, 0) }; + } + + public interface XDerived extends XBase { + TypeInfo[] UNOTYPEINFO = null; } private final class MethodSignature { |