@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) { } catch (Exception e) { fail("IllegalArgumentException should be thrown"); } }
@Override public <T> T createEndpoint(Application application, Class<T> endpointType) throws IllegalArgumentException, UnsupportedOperationException { if (application == null) { throw new IllegalArgumentException("application is null."); } return ContainerFactory.createContainer(endpointType, application); }
RuntimeDelegateImpl extends AbstractRuntimeDelegate { @Override public <T> T createEndpoint(Application application, Class<T> endpointType) throws IllegalArgumentException, UnsupportedOperationException { if (application == null) { throw new IllegalArgumentException("application is null."); } return ContainerFactory.createContainer(endpointType, application); } }
RuntimeDelegateImpl extends AbstractRuntimeDelegate { @Override public <T> T createEndpoint(Application application, Class<T> endpointType) throws IllegalArgumentException, UnsupportedOperationException { if (application == null) { throw new IllegalArgumentException("application is null."); } return ContainerFactory.createContainer(endpointType, application); } RuntimeDelegateImpl(); }
RuntimeDelegateImpl extends AbstractRuntimeDelegate { @Override public <T> T createEndpoint(Application application, Class<T> endpointType) throws IllegalArgumentException, UnsupportedOperationException { if (application == null) { throw new IllegalArgumentException("application is null."); } return ContainerFactory.createContainer(endpointType, application); } RuntimeDelegateImpl(); @Override T createEndpoint(Application application, Class<T> endpointType); }
RuntimeDelegateImpl extends AbstractRuntimeDelegate { @Override public <T> T createEndpoint(Application application, Class<T> endpointType) throws IllegalArgumentException, UnsupportedOperationException { if (application == null) { throw new IllegalArgumentException("application is null."); } return ContainerFactory.createContainer(endpointType, application); } RuntimeDelegateImpl(); @Override T createEndpoint(Application application, Class<T> endpointType);  }