use of org.apache.camel.ProxyInstantiationException in project camel by apache.
the class ProxyInstantiationExceptionTest method testProxyException.
public void testProxyException() {
Endpoint endpoint = context.getEndpoint("mock:foo");
ProxyInstantiationException e = new ProxyInstantiationException(CamelContext.class, endpoint, new IllegalArgumentException("Damn"));
assertNotNull(e);
assertNotNull(e.getMessage());
assertSame(endpoint, e.getEndpoint());
assertEquals(CamelContext.class, e.getType());
assertNotNull(e.getCause());
assertEquals("Damn", e.getCause().getMessage());
}
Aggregations