use of jp.ossc.nimbus.beans.Property in project nimbus by nimbus-org.
the class PropertyFactoryTest method testNestList2_2.
public void testNestList2_2() throws Exception {
Property prop = PropertyFactory.createProperty("test.list[3][1]");
Test test = new Test(new Test());
assertEquals("hoge42", 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_2.
public void testNestMap4_2() 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_1.
public void testNestMap2_1() 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));
}
use of jp.ossc.nimbus.beans.Property in project nimbus by nimbus-org.
the class PropertyFactoryTest method testNestMap5_1.
public void testNestMap5_1() throws Exception {
Property prop = PropertyFactory.createProperty("test.map.hogelist.[5].[1].[1]");
Test test = new Test(new Test());
assertEquals("hoge622", 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 testNestList4_2.
public void testNestList4_2() throws Exception {
Property prop = PropertyFactory.createProperty("test.list[5][2][2]");
Test test = new Test(new Test());
assertEquals("hoge633", prop.getProperty(test));
prop.setProperty(test, "hoge");
assertEquals("hoge", prop.getProperty(test));
}
Aggregations