diff options
author | Joachim Lingner <jl@openoffice.org> | 2002-04-29 10:28:05 +0000 |
---|---|---|
committer | Joachim Lingner <jl@openoffice.org> | 2002-04-29 10:28:05 +0000 |
commit | a3041973e558e58b9c915af0b862a783c983eb90 (patch) | |
tree | 005b3ea16b3d7e34da6cfb77dae1cb727b9ad7c2 /javaunohelper/test | |
parent | e1ac0373e99c79f1944ff8cd445ee3bfcc45aa6d (diff) |
#97746#
Diffstat (limited to 'javaunohelper/test')
-rw-r--r-- | javaunohelper/test/com/sun/star/lib/uno/helper/PropertySet_Test.java | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/javaunohelper/test/com/sun/star/lib/uno/helper/PropertySet_Test.java b/javaunohelper/test/com/sun/star/lib/uno/helper/PropertySet_Test.java index 71c6af903..8c00df5fb 100644 --- a/javaunohelper/test/com/sun/star/lib/uno/helper/PropertySet_Test.java +++ b/javaunohelper/test/com/sun/star/lib/uno/helper/PropertySet_Test.java @@ -2,9 +2,9 @@ * * $RCSfile: PropertySet_Test.java,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: jl $ $Date: 2002-04-25 12:51:05 $ + * last change: $Author: jl $ $Date: 2002-04-29 11:28:05 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1493,6 +1493,8 @@ class TestClass2 extends PropertySet protected char charB; char charC; + int intMemberA; + public Character charClassA; protected Character charClassB; Character charClassC; @@ -1541,10 +1543,11 @@ class TestClass2 extends PropertySet boolean r[]= new boolean[50]; int i= 0; - registerProperty("charA", (short) 0); - registerProperty("charB", (short) 0); - registerProperty("charC", (short) 0); - registerProperty("charClassB", PropertyAttribute.MAYBEVOID); + registerProperty("charA", "charA", (short) 0); + registerProperty("charB", "charB", (short) 0); + registerProperty("charC", "charC", (short) 0); + registerProperty("charClassB", "charClassB", PropertyAttribute.MAYBEVOID); + registerProperty("IntProp", "intMemberA", (short) 0); XPropertySetInfo info= getPropertySetInfo(); Property[] props= info.getProperties(); @@ -1563,6 +1566,9 @@ class TestClass2 extends PropertySet else if (aProp.Name.equals("charClassB") && aProp.Type.equals(new Type(char.class)) && aProp.Attributes == PropertyAttribute.MAYBEVOID) r[i++]= true; + else if (aProp.Name.equals("IntProp") && aProp.Type.equals(new Type(int.class)) && + aProp.Attributes == 0) + r[i++]= true; else r[i++]= false; } @@ -1575,6 +1581,10 @@ class TestClass2 extends PropertySet setPropertyValue("charClassB",val); ret= getPropertyValue("charClassB"); r[i++]= val.equals(ret); + val= new Integer(111); + setPropertyValue("IntProp",val); + ret= getPropertyValue("IntProp"); + r[i++]= val.equals(ret); } catch(Exception e) { |