Exemple #1
0
  @Test
  public void canRepublishApi() {
    ApiVersions apiVersions = processApi(apiVersion);
    apiVersions.republish();

    assertThat(getStatusCode(apiVersions), is((equalTo(500))));
  }
Exemple #2
0
 private ApiVersions processApi(ApiVersionBean apiVersionBean) {
   ApiVersions apiVersions = new ApiVersions(apiVersionBean.getApi());
   apiVersions.fetch(apiVersionBean.getVersion());
   return apiVersions.update(updateApiVersionBean);
 }
Exemple #3
0
 private int getStatusCode(ApiVersions apiVersions) {
   return givenGateway().get(apiVersions.getManagedEndpoint()).getStatusCode();
 }