use of jp.ossc.nimbus.beans.Property in project nimbus by nimbus-org.
the class PropertyFactoryTest method testNest1.
public void testNest1() throws Exception {
Property prop = PropertyFactory.createProperty("test.simple");
Test test = new Test(new 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 testNestList2_1.
public void testNestList2_1() 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 testNestMap8_1.
public void testNestMap8_1() 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 testNestList4_1.
public void testNestList4_1() 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));
}
use of jp.ossc.nimbus.beans.Property in project nimbus by nimbus-org.
the class PropertyFactoryTest method testList.
public void testList() throws Exception {
Property prop = PropertyFactory.createProperty("list[0]");
Test test = new Test();
prop.setProperty(test, "hoge");
assertEquals("hoge", prop.getProperty(test));
}
Aggregations