use of jp.ossc.nimbus.beans.NoSuchPropertyException in project nimbus by nimbus-org.
the class MappedPropertyTest method testParse2.
public void testParse2() throws Exception {
MappedProperty prop = new MappedProperty();
prop.parse("mapped2(fuga)");
Test test = new Test();
try {
prop.setProperty(test, "hoge");
fail();
} catch (NoSuchPropertyException e) {
}
}
use of jp.ossc.nimbus.beans.NoSuchPropertyException in project nimbus by nimbus-org.
the class SimplePropertyTest method testParse3.
public void testParse3() throws Exception {
SimpleProperty prop = new SimpleProperty();
prop.parse("simple2");
Test test = new Test();
try {
prop.getProperty(test);
fail();
} catch (NoSuchPropertyException e) {
}
}
use of jp.ossc.nimbus.beans.NoSuchPropertyException 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.NoSuchPropertyException 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) {
}
}
use of jp.ossc.nimbus.beans.NoSuchPropertyException in project nimbus by nimbus-org.
the class WrappedClientConnectionFactoryService method getClientConnection.
public ClientConnection getClientConnection() throws ConnectionCreateException, RemoteException {
if (getState() != STARTED) {
throw new ConnectionCreateException("Service not started. name=" + getServiceNameObject());
}
try {
ClientConnection clientConnection = (ClientConnection) clientConnectionWrapperConstructor.newInstance(new Object[] { clientConnectionFactory.getClientConnection() });
if (properties != null) {
final Iterator props = properties.keySet().iterator();
while (props.hasNext()) {
final Property prop = (Property) props.next();
final Object val = properties.get(prop);
prop.setProperty(clientConnection, val);
}
}
return clientConnection;
} catch (IllegalAccessException e) {
throw new ConnectionCreateException(e);
} catch (InstantiationException e) {
throw new ConnectionCreateException(e);
} catch (InvocationTargetException e) {
throw new ConnectionCreateException(e);
} catch (NoSuchPropertyException e) {
throw new ConnectionCreateException(e);
}
}
Aggregations