Search in sources :

Example 1 with Container

use of oracle.kubernetes.operator.work.Container in project weblogic-kubernetes-operator by oracle.

the class RestTest method setUp.

@Before
public void setUp() throws Exception {
    Container container = new Container();
    savedhandlers = TestUtils.removeConsoleHandlers(logger);
    // Start the REST server
    rs = new RestServer(new TestRestConfigImpl());
    rs.start(container);
    // create the client
    Client c = ClientBuilder.newBuilder().trustStore(createTrustStore()).register(JsonProcessingFeature.class).build();
    externalHttpsTarget = c.target(rs.getExternalHttpsUri());
    internalHttpsTarget = c.target(rs.getInternalHttpsUri());
}
Also used : Container(oracle.kubernetes.operator.work.Container) JsonProcessingFeature(org.glassfish.jersey.jsonp.JsonProcessingFeature) Client(javax.ws.rs.client.Client) Before(org.junit.Before)

Aggregations

Client (javax.ws.rs.client.Client)1 Container (oracle.kubernetes.operator.work.Container)1 JsonProcessingFeature (org.glassfish.jersey.jsonp.JsonProcessingFeature)1 Before (org.junit.Before)1