Skip to content

Commit

Permalink
Updating Unit test
Browse files Browse the repository at this point in the history
Signed-off-by: Benny <[email protected]>
  • Loading branch information
DukeDavis12 committed Nov 20, 2023
1 parent 31c7f89 commit c70e7f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,6 @@ public void doPost() throws Exception {
return;
}

try {
final To2AddressEntries to2AddressEntries =
Mapper.INSTANCE.readJsonValue(body, To2AddressEntries.class);
HttpUtils.getInstructions(to2AddressEntries);
} catch (Exception e) {
getResponse().setStatus(HttpServletResponse.SC_BAD_REQUEST);
return;
}

getTransaction();

OnboardingConfig onboardingConfig =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,10 +263,10 @@ public void certificateTest() throws IOException, InterruptedException {
@Test
public void redirectEntryTest() throws IOException, InterruptedException {
doPostApi("http://localhost:8080/api/v1/owner/redirect",
"[[\"localhost\",\"127.0.0.1\",8042,3]]",
"[[\"127.0.0.1\",\"127.0.0.1\",8042,3]]",
HttpServletResponse.SC_OK);
doGetApi("http://localhost:8080/api/v1/owner/redirect",
"[[\"localhost\",\"127.0.0.1\",8042,3]]",
"[[\"127.0.0.1\",\"127.0.0.1\",8042,3]]",
HttpServletResponse.SC_OK);
doPostApi("http://localhost:8080/api/v1/owner/redirect",
"[[\"localhost\",\"127.0.0.1\",8080,3]]",
Expand Down

0 comments on commit c70e7f3

Please sign in to comment.