Skip to content

Commit

Permalink
Merge pull request #5888 from rsvoboda/isEmptyString.replace
Browse files Browse the repository at this point in the history
Deprecated isEmptyString replacement
  • Loading branch information
machi1990 authored Nov 30, 2019
2 parents 6ced767 + 9353e0c commit 5fb13e0
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package io.quarkus.it.spring.web;

import static org.hamcrest.Matchers.containsString;
import static org.hamcrest.Matchers.isEmptyString;
import static org.hamcrest.Matchers.emptyString;
import static org.hamcrest.Matchers.is;

import java.util.Optional;

Expand Down Expand Up @@ -136,23 +137,23 @@ public void testFirstResponseStatusHoldingException() {
public void testSecondResponseStatusHoldingException() {
RestAssured.when().get("/exception/second").then()
.contentType("text/plain")
.body(isEmptyString())
.body(is(emptyString()))
.statusCode(503);
}

@Test
public void testExceptionHandlerVoidReturnType() {
RestAssured.when().get("/exception/void").then()
.contentType("text/plain")
.body(isEmptyString())
.body(is(emptyString()))
.statusCode(400);
}

@Test
public void testExceptionHandlerWithoutResponseStatusOnExceptionOrMethod() {
RestAssured.when().get("/exception/unannotated").then()
.contentType("text/plain")
.body(isEmptyString())
.body(is(emptyString()))
.statusCode(204);
}

Expand Down

0 comments on commit 5fb13e0

Please sign in to comment.