Package com.openshift.internal.client.response

Examples of com.openshift.internal.client.response.OpenShiftJsonDTOFactory


    Assert.notNull(clientId);
    Assert.notNull(serverUrl);
    Assert.notNull(httpClient);

    IRestService service = new RestService(serverUrl, clientId, new JsonMediaType(),
        IHttpClient.MEDIATYPE_APPLICATION_JSON, new OpenShiftJsonDTOFactory(), httpClient);
    return getConnection(service, username, password);
  }
View Full Code Here


    Assert.notNull(clientId);
    Assert.notNull(serverUrl);
    Assert.notNull(httpClient);

    IRestService service = new RestService(serverUrl, clientId, new JsonMediaType(),
        IHttpClient.MEDIATYPE_APPLICATION_JSON, new OpenShiftJsonDTOFactory(), httpClient);
    return getConnection(service, username, password);
  }
View Full Code Here

    Assert.notNull(clientId);
    Assert.notNull(serverUrl);
    Assert.notNull(httpClient);

    IRestService service = new RestService(serverUrl, clientId, new JsonMediaType(),
        IHttpClient.MEDIATYPE_APPLICATION_JSON, new OpenShiftJsonDTOFactory(), httpClient);
    return getConnection(service, username, password);
  }
View Full Code Here

    this.service = new RestService(
        configuration.getStagingServer(),
        configuration.getClientId(),
        new JsonMediaType(),
        IHttpClient.MEDIATYPE_APPLICATION_JSON,
        new OpenShiftJsonDTOFactory(),
        clientMock);
  }
View Full Code Here

    IRestService service = new RestService(
        serverUrl,
        new OpenShiftTestConfiguration().getClientId(),
        new JsonMediaType(),
        IHttpClient.MEDIATYPE_APPLICATION_JSON,
        new OpenShiftJsonDTOFactory(),
        clientMock);
    // operation
    String platformUrl = service.getPlatformUrl();
    // verifications
    assertThat(platformUrl).startsWith("https://");
View Full Code Here

    IRestService service = new RestService(
        serverUrl,
        new OpenShiftTestConfiguration().getClientId(),
        new JsonMediaType(),
        IHttpClient.MEDIATYPE_APPLICATION_JSON,
        new OpenShiftJsonDTOFactory(),
        clientMock);
    // operation
    String platformUrl = service.getPlatformUrl();
    // verifications
    assertThat(platformUrl).isEqualTo(serverUrl);
View Full Code Here

    String clientId = "unit-test";
    new RestService("jboss.org",
        clientId,
        new JsonMediaType(),
        IHttpClient.MEDIATYPE_APPLICATION_JSON,
        new OpenShiftJsonDTOFactory(),
        httpClientMock,
        properties);

    // verifications
    String userAgent = properties.getUseragent(clientId);
View Full Code Here

    new RestService(
        "jboss.org",
        clientId,
        new JsonMediaType(),
        IHttpClient.MEDIATYPE_APPLICATION_JSON,
        new OpenShiftJsonDTOFactory(),
        httpClientMock,
        properties);

    // verifications
    verify(clientMock, times(1)).setAcceptVersion("1.2");
View Full Code Here

    new RestService(
        "jboss.org",
        "unit-test",
        new JsonMediaType(),
        IHttpClient.MEDIATYPE_APPLICATION_JSON,
        new OpenShiftJsonDTOFactory(),
        httpClientMock,
        properties);

    // verifications
    verify(httpClientMock, times(1)).setAcceptedMediaType(IHttpClient.MEDIATYPE_APPLICATION_JSON);
View Full Code Here

        "jboss.org",
        clientId,
        "4.2",
        new JsonMediaType(),
        IHttpClient.MEDIATYPE_APPLICATION_JSON,
        new OpenShiftJsonDTOFactory(),
        httpClientMock,
        properties);

    // verifications
    verify(httpClientMock, times(1)).setAcceptVersion("4.2");
View Full Code Here

TOP

Related Classes of com.openshift.internal.client.response.OpenShiftJsonDTOFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.