use of javax.ws.rs.ext.RuntimeDelegate in project jersey by jersey.
the class RuntimeDelegateImplTest method testCreateEndpoint.
@Test
public void testCreateEndpoint() {
RuntimeDelegate delegate = RuntimeDelegate.getInstance();
try {
delegate.createEndpoint((Application) null, com.sun.net.httpserver.HttpHandler.class);
fail("IllegalArgumentException should be thrown");
} catch (IllegalArgumentException iae) {
// ok - should be thrown
} catch (Exception e) {
fail("IllegalArgumentException should be thrown");
}
}
Aggregations