Skip to content

Commit

Permalink
unit test updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Rwolfe-Nava committed Jun 11, 2024
1 parent d8f7edd commit ceba232
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ void processTest() throws URISyntaxException {

assertEquals(3, results.getOptInToday());
assertEquals(4, results.getOptOutToday());
assertEquals(7, results.getTotalToday());
assertEquals(optOutProcessing.optOutInformationList.size(), results.getTotalToday());
}

@Test
Expand All @@ -82,7 +82,7 @@ void processEmptyFileTest() throws IOException, URISyntaxException {
S3MockAPIExtension.createFile(Files.readString(Paths.get("src/test/resources/" + emptyFileName), StandardCharsets.UTF_8), emptyFileName);
OptOutResults results = optOutProcessing.process(emptyFileName, TEST_BFD_BUCKET_NAME, TEST_ENDPOINT);
assertEquals(0, optOutProcessing.optOutInformationList.size());
assertEquals(0, results.getTotalToday());
assertEquals(optOutProcessing.optOutInformationList.size(), results.getTotalToday());
S3MockAPIExtension.deleteFile(emptyFileName);
}

Expand Down Expand Up @@ -160,7 +160,7 @@ void getOptOutResultsTest() throws SQLException {
final int OPT_IN_TOTAL = 9;
final int OPT_OUT_TOTAL = 7;

when(resultSet.next()).thenReturn(true).thenReturn(true).thenReturn(false);
when(resultSet.next()).thenReturn(true).thenReturn(false);
when(resultSet.getInt(OPT_IN_RESULTSET_STRING)).thenReturn(OPT_IN_TOTAL);
when(resultSet.getInt(OPT_OUT_RESULTSET_STRING)).thenReturn(OPT_OUT_TOTAL);

Expand Down

0 comments on commit ceba232

Please sign in to comment.