Package com.griddynamics.genesis.tools

Examples of com.griddynamics.genesis.tools.CommonResultObjectResponse


   
    @Then("New value of setting should be set")
    public void thenNewValueIsSet() throws IOException {
      Assert.assertTrue(request.checkStatusCode200(), "Status code is " + request.getResponse().getStatusCode() + ", but must be 200");

    CommonResultObjectResponse actualResponse = request.getResponseObject(CommonResultObjectResponse.class);
    CommonResultObjectResponse expectedResponse = CommonResultObjectResponse
        .getResultFromString(true, false, "", "", "", "");
    Assert.assertEquals(actualResponse, expectedResponse);
    }
View Full Code Here


        request.post(requestBody);
    }
  
    @Then("New environment will be created")
    public void thenNewEnviromentCreated() throws IOException {
    CommonResultObjectResponse actualResponse = request.getResponseObject(CommonResultObjectResponse.class);
    CommonResultObjectResponse expectedResponse = CommonResultObjectResponse
        .getResultFromString(true, false, "", "", "", "");
    Assert.assertEquals(actualResponse, expectedResponse);

      Assert.assertTrue(request.checkStatusCode200(), "Status code is " + request.getResponse().getStatusCode() + ", but must be 200");
      Assert.assertTrue(isEnvironmentExists(String.format(GET_ENVS_URL, projectId), requestBody.getEnvName()), "[ENV is not existed]");
View Full Code Here

    request.delete();
    }
   
    @Then("Environment will be deleted")
    public void thenEnviromentWillBeDeleted() throws IOException {
    CommonResultObjectResponse actualResponse = request.getResponseObject(CommonResultObjectResponse.class);
    CommonResultObjectResponse expectedResponse = CommonResultObjectResponse
        .getResultFromString(true, false, "", "", "", "");
    Assert.assertEquals(request.checkStatusCode200(), true);
    Assert.assertEquals(actualResponse, expectedResponse);

    Assert.assertTrue(request.checkStatusCode200(), "Status code is " + request.getResponse().getStatusCode() + ", but must be 200");
View Full Code Here

    request.put(expRole);
  }

  @Then("I expect that role was changed successfully")
  public void thenIExpectSuccessfulRoleChanges() {
    CommonResultObjectResponse actResponse = request.getResponseObject(CommonResultObjectResponse.class);
    CommonResultObjectResponse expResponse = CommonResultObjectResponse
        .getResultFromString(true, false, "", "", "", "");
    Assert.assertEquals(request.checkStatusCode200(), true);
    Assert.assertEquals(actResponse, expResponse);
  }
View Full Code Here

 
  @Then("I expect that response with error message <variablesErrors> was returned")
  @Aliases(values = { "I expect that response with error message $variablesErrors was returned" })
  public static void thenIExpectFailedRequestWithError(
      @Named("variablesErrors") String variablesErrors) {
    CommonResultObjectResponse actResponse = request.getResponseObject(CommonResultObjectResponse.class);
    CommonResultObjectResponse expResponse = CommonResultObjectResponse
    .getResultFromString(false, false, "", variablesErrors,
        "", "");
    Assert.assertEquals(expResponse, actResponse);
    Assert.assertEquals(request.checkStatusCode400(), true);
  }
View Full Code Here

 
  @Then("I expect that response with compound error message <compoundServiceErrors> was returned")
  @Aliases(values = { "I expect that response with compound error message $compoundServiceErrors was returned" })
  public static void thenIExpectFailedRequestWithCompoundError(
      @Named("compoundServiceErrors") String compoundServiceErrors) {
    CommonResultObjectResponse actResponse = request.getResponseObject(CommonResultObjectResponse.class);
    CommonResultObjectResponse expResponse = CommonResultObjectResponse
    .getResultFromString(false, false, "", "",
        compoundServiceErrors, "");
    Assert.assertEquals(expResponse,actResponse);
    Assert.assertEquals(request.checkStatusCode400(), true);
  }
View Full Code Here

 
  @Then("I expect that response with error message <variablesErrors> and compound error message <compoundServiceErrors> was returned")
  @Aliases(values = { "I expect that response with error message $plainMessage and compound error message $compoundMessage was returned" })
  public static void thenIExpectFailedRequestWithManyErrors(
      @Named("variablesErrors") String variablesErrors, @Named("compoundServiceErrors") String compoundServiceErrors) {
    CommonResultObjectResponse actResponse = request.getResponseObject(CommonResultObjectResponse.class);
    CommonResultObjectResponse expResponse = CommonResultObjectResponse
        .getResultFromString(false, false, "", variablesErrors,
            compoundServiceErrors, "");
    Assert.assertEquals(expResponse, actResponse);
    Assert.assertEquals(request.checkStatusCode400(), true);
  }
View Full Code Here

    request.put(expProjectRole);
  }

  @Then("I expect that project role was changed successfully")
  public static void thenIExpectSuccessfulProjectRoleChanges() {
    CommonResultObjectResponse actResponse = request.getResponseObject(CommonResultObjectResponse.class);
    CommonResultObjectResponse expResponse = CommonResultObjectResponse
        .getResultFromString(true, false, "", "", "", "");
    Assert.assertEquals(request.checkStatusCode200(), true);
    Assert.assertEquals(actResponse, expResponse);
  }
View Full Code Here

TOP

Related Classes of com.griddynamics.genesis.tools.CommonResultObjectResponse

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.