summaryrefslogtreecommitdiff
path: root/javaunohelper
diff options
context:
space:
mode:
authorJoachim Lingner <jl@openoffice.org>2002-04-29 10:28:05 +0000
committerJoachim Lingner <jl@openoffice.org>2002-04-29 10:28:05 +0000
commitc83dbf2e9b971ffb7185e62b71237835d544161d (patch)
tree35bad74aa50a7715c4a1b873339a19b5278327a2 /javaunohelper
parent9cf2a9c90c964a5eb15ab30df7c2589917e87c8f (diff)
#97746#
Diffstat (limited to 'javaunohelper')
-rw-r--r--javaunohelper/test/com/sun/star/lib/uno/helper/PropertySet_Test.java22
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 14e1dcc2c686..491e2508e53b 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)
{