diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-02-03 12:26:25 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-02-03 12:26:25 +0000 |
commit | b9d34c39881be9e870ed7302a2e305eed6c259e3 (patch) | |
tree | 6bd0ff03e218858aed39e64a86f7455fea057a69 /ridljar | |
parent | INTEGRATION: CWS sal05 (1.11.6); FILE MERGED (diff) | |
download | core-b9d34c39881be9e870ed7302a2e305eed6c259e3.tar.gz core-b9d34c39881be9e870ed7302a2e305eed6c259e3.zip |
INTEGRATION: CWS sb10 (1.3.10); FILE MERGED
2003/11/04 14:12:07 sb 1.3.10.2: #112870# Added testSequence.
2003/10/30 09:23:06 sb 1.3.10.1: #112870# Fixed typo.
Diffstat (limited to 'ridljar')
-rw-r--r-- | ridljar/test/com/sun/star/lib/uno/typedesc/TypeDescription_Test.java | 16 |
1 files changed, 11 insertions, 5 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 85a96850c318..866cc20c06f7 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.3 $ + * $Revision: 1.4 $ * - * last change: $Author: hr $ $Date: 2003-08-07 14:37:53 $ + * last change: $Author: hr $ $Date: 2004-02-03 13:26:25 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -80,7 +80,7 @@ public final class TypeDescription_Test extends ComplexTestCase { public String[] getTestMethodNames() { return new String[] { "test", "testUnsigned", - "testGetMethodDescription" }; + "testGetMethodDescription", "testSequence" }; } public void test() throws Exception { @@ -150,7 +150,7 @@ public final class TypeDescription_Test extends ComplexTestCase { Object[] exceptionData = new Object [] { "com.sun.star.uno.Exception", "[Lcom.sun.star.uno.Exception;", com.sun.star.uno.Exception.class, TypeClass.EXCEPTION, - new Object[] { interfaceData }, null }; + new Object[] { interfaceData } }; Object[] namingServiceData = new Object[] { "com.sun.star.uno.XNamingService", "[Lcom.sun.star.uno.XNamingService;", XNamingService.class, @@ -187,7 +187,13 @@ public final class TypeDescription_Test extends ComplexTestCase { td.getMethodDescription("fn"); } - public interface XBase { + public void testSequence() throws ClassNotFoundException { + assure( + TypeDescription.getTypeDescription("[]unsigned short"). + getComponentType().getTypeName().equals("unsigned short")); + } + + public interface XBase extends XInterface { void fn(); TypeInfo[] UNOTYPEINFO = { new MethodTypeInfo("fn", 0, 0) }; |