@Before public void setUp() { when(vertx.createHttpServer(any(HttpServerOptions.class))).thenReturn(httpServer); when(container.getVertx()).thenReturn(vertx); when(container.getApplicationHandler()).thenReturn(new ApplicationHandler()); when(options.getServerOptions()).thenReturn(serverOptions); when(jerseyHandler.getBaseUri()).thenReturn(baseUri); jerseyServer = new DefaultJerseyServer(jerseyHandler, container, () -> options); }
HttpServerOptions serverOptions = options.getServerOptions(); if (serverOptions == null) { throw new IllegalArgumentException("http server options cannot be null");
HttpServerOptions serverOptions = options.getServerOptions(); if (serverOptions == null) { throw new IllegalArgumentException("http server options cannot be null");