Commit 886c3afd authored by Kelly Zhou's avatar Kelly Zhou
Browse files

fix unit tests

parent 6f1342ef
Pipeline #45906 failed with stages
in 2 minutes and 43 seconds
......@@ -25,7 +25,6 @@ public class GlobalExceptionMapperTests {
@Test
public void should_useValuesInAppExceptionInResponse_When_AppExceptionIsHandledByGlobalExceptionMapper() throws Exception {
GlobalExceptionMapper sut = new GlobalExceptionMapper();
AppException exception = new AppException(409, "any reason", "any message");
ResponseEntity<AppError> response = sut.handleAppException(exception);
......@@ -39,7 +38,6 @@ public class GlobalExceptionMapperTests {
@Test
public void should_useGenericValuesInResponse_When_ExceptionIsHandledByGlobalExceptionMapper() {
GlobalExceptionMapper sut = new GlobalExceptionMapper();
Exception exception = new Exception("any message");
ResponseEntity<AppError> response = sut.handleGeneralException(exception);
......@@ -53,7 +51,6 @@ public class GlobalExceptionMapperTests {
@Test
public void shouldReturnBadRequest() {
GlobalExceptionMapper sut = new GlobalExceptionMapper();
AppException exception = AppException.createBadRequest("Bad request");
ResponseEntity<AppError> response = sut.handleAppException(exception);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment