Skip to content

Commit

Permalink
minor test method refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
wwelling committed Mar 4, 2021
1 parent cd226d2 commit e5b11ca
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,29 +59,29 @@ public void setup() {
}

@Test
public void testOkapiRequestHEAD() {
public void testOkapiHeadRequest() {
testOkapiRequest("http://localhost:9130/locations", HttpMethod.HEAD, HttpStatus.OK);
}

@Test
public void testOkapiRequestGET() {
public void testOkapiGetRequest() {
testOkapiRequest("http://localhost:9130/locations", HttpMethod.GET, HttpStatus.OK);
}

@Test
public void testOkapiRequestPOST() {
public void testOkapiPostRequest() {
JsonNode requestBody = objectMapper.createObjectNode();
testOkapiRequest("http://localhost:9130/locations", HttpMethod.POST, requestBody, HttpStatus.CREATED);
}

@Test
public void testOkapiRequestPUT() {
public void testOkapiPutRequest() {
JsonNode requestBody = objectMapper.createObjectNode();
testOkapiRequest("http://localhost:9130/locations/uuid", HttpMethod.PUT, requestBody, HttpStatus.OK);
}

@Test
public void testOkapiRequestDELETE() {
public void testOkapiDeleteRequest() {
testOkapiRequest("http://localhost:9130/locations/uuid", HttpMethod.DELETE, HttpStatus.OK);
}

Expand Down

0 comments on commit e5b11ca

Please sign in to comment.