Search in sources :

Example 6 with IndexedProperty

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) {
    }
}
Also used : IndexedProperty(jp.ossc.nimbus.beans.IndexedProperty) NoSuchPropertyException(jp.ossc.nimbus.beans.NoSuchPropertyException)

Example 7 with IndexedProperty

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));
}
Also used : IndexedProperty(jp.ossc.nimbus.beans.IndexedProperty)

Example 8 with IndexedProperty

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));
}
Also used : IndexedProperty(jp.ossc.nimbus.beans.IndexedProperty)

Example 9 with IndexedProperty

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));
}
Also used : IndexedProperty(jp.ossc.nimbus.beans.IndexedProperty)

Example 10 with IndexedProperty

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) {
    }
}
Also used : IndexedProperty(jp.ossc.nimbus.beans.IndexedProperty) NoSuchPropertyException(jp.ossc.nimbus.beans.NoSuchPropertyException)

Aggregations

IndexedProperty (jp.ossc.nimbus.beans.IndexedProperty)15 NoSuchPropertyException (jp.ossc.nimbus.beans.NoSuchPropertyException)3 InvocationTargetException (java.lang.reflect.InvocationTargetException)1 HashMap (java.util.HashMap)1 Iterator (java.util.Iterator)1 Map (java.util.Map)1 ConcurrentHashMap (java.util.concurrent.ConcurrentHashMap)1 ConcurrentMap (java.util.concurrent.ConcurrentMap)1 ServletRequest (javax.servlet.ServletRequest)1 HttpServletRequest (javax.servlet.http.HttpServletRequest)1 NestedProperty (jp.ossc.nimbus.beans.NestedProperty)1 Property (jp.ossc.nimbus.beans.Property)1 DataSet (jp.ossc.nimbus.beans.dataset.DataSet)1 PropertySetException (jp.ossc.nimbus.beans.dataset.PropertySetException)1 Record (jp.ossc.nimbus.beans.dataset.Record)1 RecordList (jp.ossc.nimbus.beans.dataset.RecordList)1 BeanFlowInvoker (jp.ossc.nimbus.service.beancontrol.interfaces.BeanFlowInvoker)1