Skip to content

Commit

Permalink
Mocking correct response from raire service.
Browse files Browse the repository at this point in the history
  • Loading branch information
vteague committed Jun 27, 2024
1 parent 0f093da commit efc3163
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public void initMocks() {
.willReturn(aResponse()
.withStatus(HttpStatus.SC_OK)
.withHeader("Content-Type", "application/json")
.withBody(gson.toJson(response))));
.withBody(gson.toJson(boulderResponse))));
}

@AfterClass
Expand All @@ -155,15 +155,15 @@ public void closeMocks() {
* Calls the single-contest version for the tinyIRVExample, checks for the right winner.
*/
@Test
public void rightTinyIRVWinner() {
public void rightBoulderIRVWinner() {
testUtils.log(LOGGER, "rightTinyIRVWinner");

GenerateAssertionsResponseWithErrors result = endpoint.generateAssertionsUpdateWinners(
mockedIRVContestResults, boulderRequest.contestName, boulderRequest.timeLimitSeconds,
baseUrl + raireGenerateAssertionsEndpoint);

assertEquals(result.contestName, tinyIRV);
assertEquals(result.winner, "Alice");
assertEquals(result.contestName, boulderMayoral);
assertEquals(result.winner, "Aaron Brockett");
}

/**
Expand Down

0 comments on commit efc3163

Please sign in to comment.