use of jp.ossc.nimbus.beans.Property in project nimbus by nimbus-org.
the class PropertyFactoryTest method testArray1.
public void testArray1() throws Exception {
Property prop = PropertyFactory.createProperty("array[0]");
Test test = new Test();
prop.setProperty(test, "hogehoge1");
assertEquals("hogehoge1", prop.getProperty(test));
}
use of jp.ossc.nimbus.beans.Property in project nimbus by nimbus-org.
the class PropertyFactoryTest method testNestMap1_2.
public void testNestMap1_2() 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 testNestMap8_2.
public void testNestMap8_2() throws Exception {
Property prop = PropertyFactory.createProperty("test.map.hogeString2[2][2]");
Test test = new Test(new Test());
assertEquals("fuga633", 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 testNestList3_2.
public void testNestList3_2() 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 testNestMap3_1.
public void testNestMap3_1() throws Exception {
Property prop = PropertyFactory.createProperty("test.map.hogelist.[3].[0]");
Test test = new Test(new Test());
assertEquals("hoge41", prop.getProperty(test));
prop.setProperty(test, "hoge");
assertEquals("hoge", prop.getProperty(test));
}
Aggregations