use of jp.ossc.nimbus.beans.Property in project nimbus by nimbus-org.
the class PropertyFactoryTest method testNestList5.
public void testNestList5() throws Exception {
Property prop = PropertyFactory.createProperty("test.list[6].hoge71");
Test test = new Test(new Test());
assertEquals("fuga71", 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 testNestMap7_2.
public void testNestMap7_2() throws Exception {
Property prop = PropertyFactory.createProperty("test.map.hogeString1[0]");
Test test = new Test(new Test());
assertEquals("fuga51", 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 testArray2.
public void testArray2() throws Exception {
Property prop = PropertyFactory.createProperty("[1]");
Test test = new Test();
prop.setProperty(test, "hogehoge2");
assertEquals("hogehoge2", prop.getProperty(test));
}
use of jp.ossc.nimbus.beans.Property in project nimbus by nimbus-org.
the class PropertyFactoryTest method testMap.
public void testMap() throws Exception {
Property prop = PropertyFactory.createProperty("map(hoge1)");
Test test = new Test();
assertEquals("fuga1", prop.getProperty(test));
prop = PropertyFactory.createProperty("mapValue(hoge1)");
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 testNest2.
public void testNest2() throws Exception {
Property prop = PropertyFactory.createProperty("test.test.array2[0][0]");
Test test = new Test(new Test(new Test()));
prop.setProperty(test, "hoge");
assertEquals("hoge", prop.getProperty(test));
}
Aggregations