use of jp.ossc.nimbus.beans.IndexedProperty in project nimbus by nimbus-org.
the class IndexedPropertyTest method testParse2.
public void testParse2() throws Exception {
IndexedProperty prop = new IndexedProperty();
prop.parse("indexed2[1]");
Test test = new Test();
try {
prop.setProperty(test, "hoge");
fail();
} catch (NoSuchPropertyException e) {
}
}
use of jp.ossc.nimbus.beans.IndexedProperty in project nimbus by nimbus-org.
the class IndexedPropertyTest method testParse1.
public void testParse1() throws Exception {
IndexedProperty prop = new IndexedProperty();
prop.parse("indexed[1]");
Test test = new Test();
prop.setProperty(test, "hoge");
assertEquals("hoge", prop.getProperty(test));
}
use of jp.ossc.nimbus.beans.IndexedProperty in project nimbus by nimbus-org.
the class IndexedPropertyTest method testParse11.
public void testParse11() throws Exception {
IndexedProperty prop = new IndexedProperty();
prop.parse("[1]");
Test test = new Test();
prop.setProperty(test, null);
assertNull(prop.getProperty(test));
}
use of jp.ossc.nimbus.beans.IndexedProperty in project nimbus by nimbus-org.
the class IndexedPropertyTest method testParse9.
public void testParse9() throws Exception {
IndexedProperty prop = new IndexedProperty();
prop.parse("[3]");
IndexedObject test = new IndexedObject();
prop.setProperty(test, "hoge");
assertEquals("hoge", prop.getProperty(test));
}
use of jp.ossc.nimbus.beans.IndexedProperty in project nimbus by nimbus-org.
the class IndexedPropertyTest method testParse3.
public void testParse3() throws Exception {
IndexedProperty prop = new IndexedProperty();
prop.parse("indexed2[1]");
Test test = new Test();
try {
prop.getProperty(test);
fail();
} catch (NoSuchPropertyException e) {
}
}
Aggregations