예제 #1
0
  @Test
  public void resetSetsRootPathToEmptyString() throws Exception {
    rootPath = "store.book";

    RestAssured.reset();

    assertThat(rootPath, equalTo(""));
  }
예제 #2
0
 @Test
 public void whenNotSpecifyingExplicitRootPathThenDefaultRootPathIsUsed() throws Exception {
   rootPath = "store.book";
   try {
     expect()
         .body("category.size()", equalTo(4))
         .body("author.size()", equalTo(4))
         .when()
         .get("/jsonStore");
   } finally {
     RestAssured.reset();
   }
 }