-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor ForTestingController (#1047)
- Loading branch information
1 parent
d073af0
commit 32c76c4
Showing
7 changed files
with
63 additions
and
125 deletions.
There are no files selected for viewing
39 changes: 0 additions & 39 deletions
39
src/main/java/edu/hawaii/its/api/controller/ForTestingController.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
src/main/java/edu/hawaii/its/groupings/exceptions/ExceptionForTesting.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package edu.hawaii.its.groupings.exceptions; | ||
|
||
public class ExceptionForTesting extends RuntimeException { | ||
|
||
public ExceptionForTesting(String message) { | ||
super(message); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
74 changes: 0 additions & 74 deletions
74
src/test/java/edu/hawaii/its/api/controller/ForTestingControllerTest.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
src/test/java/edu/hawaii/its/groupings/controller/ExceptionForTestingTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package edu.hawaii.its.groupings.controller; | ||
|
||
import static org.hamcrest.CoreMatchers.equalTo; | ||
import static org.hamcrest.MatcherAssert.assertThat; | ||
import static org.junit.jupiter.api.Assertions.assertNotNull; | ||
|
||
import org.junit.jupiter.api.Test; | ||
import edu.hawaii.its.groupings.exceptions.ExceptionForTesting; | ||
|
||
public class ExceptionForTestingTest { | ||
|
||
@Test | ||
public void construction() { | ||
ExceptionForTesting ex = new ExceptionForTesting("Test Exception"); | ||
assertNotNull(ex); | ||
assertThat(ex.getMessage(), equalTo("Test Exception")); | ||
} | ||
} |