use of jp.ossc.nimbus.beans.Property in project nimbus by nimbus-org.
the class PropertyFactoryTest method testNull1.
public void testNull1() throws Exception {
Property prop = PropertyFactory.createProperty("map(foge1)");
Test test = new Test();
assertNull(prop.getProperty(test));
}
use of jp.ossc.nimbus.beans.Property in project nimbus by nimbus-org.
the class PropertyFactoryTest method testNestList3_1.
public void testNestList3_1() throws Exception {
Property prop = PropertyFactory.createProperty("test.list[4].[0]");
Test test = new Test(new Test());
assertEquals("hoge51", prop.getProperty(test));
prop.setProperty(test, "hoge");
assertEquals("hoge", prop.getProperty(test));
}
use of jp.ossc.nimbus.beans.Property in project nimbus by nimbus-org.
the class PropertyFactoryTest method testNestMap1_1.
public void testNestMap1_1() throws Exception {
Property prop = PropertyFactory.createProperty("test.map(hoge1)");
Test test = new Test(new Test());
assertEquals("fuga1", prop.getProperty(test));
prop.setProperty(test, "hoge");
assertEquals("hoge", prop.getProperty(test));
}
use of jp.ossc.nimbus.beans.Property in project nimbus by nimbus-org.
the class PropertyFactoryTest method testNestMap4_1.
public void testNestMap4_1() throws Exception {
Property prop = PropertyFactory.createProperty("test.map.hogelist.[4].[0]");
Test test = new Test(new Test());
assertEquals("hoge51", prop.getProperty(test));
prop.setProperty(test, "hoge");
assertEquals("hoge", prop.getProperty(test));
}
use of jp.ossc.nimbus.beans.Property in project nimbus by nimbus-org.
the class PropertyFactoryTest method testNestMap2_2.
public void testNestMap2_2() throws Exception {
Property prop = PropertyFactory.createProperty("test.map(hogelist)[0]");
Test test = new Test(new Test());
assertEquals("hoge1", prop.getProperty(test));
prop.setProperty(test, "hoge");
assertEquals("hoge", prop.getProperty(test));
}
Aggregations