Kaydet (Commit) 6417e0a1 authored tarafından Ingrid Halama's avatar Ingrid Halama

chart47: #i111560# ApiTest: MAYBEVOID properties are handled wrongly be the api…

chart47: #i111560# ApiTest: MAYBEVOID properties are handled wrongly be the api test framework if they are not set initially
üst 1afc67a4
......@@ -41,6 +41,7 @@ import java.lang.reflect.Method;
import util.ValueChanger;
import util.ValueComparer;
import util.utils;
import com.sun.star.uno.Any;
import com.sun.star.uno.AnyConverter;
......@@ -179,6 +180,19 @@ public class MultiPropertyTest extends MultiMethodTest
{
Object oldValue = oObj.getPropertyValue(propName);
if( (oldValue==null) || utils.isVoid(oldValue) )
{
// #i111560# method getNewValue() does not work with an empty oldValue
Property prop = info.getPropertyByName(propName);
if( (prop.Attributes & PropertyAttribute.MAYBEVOID) != 0 )
{
// todo: implement a new test independent from method getNewValue()
log.println("changing initially empty MAYBEVOID properties is not supported by the test framework so far - skip test of property: " + propName);
tRes.tested(propName, true);
return;
}
}
Object newValue;
// trying to create new value
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment