Skip to content

Commit

Permalink
Fixes failing test due to different URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
josh-richardson committed Dec 6, 2019
1 parent e72b7de commit 4c6a462
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/org/web3j/console/project/UpdaterTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,15 @@ private void testWorksWithVersion(String version) throws IOException {
version);

stubFor(
post(urlPathMatching("/api/v1/versioning/versions/"))
post(urlPathMatching("/api/versions/latest"))
.willReturn(
aResponse()
.withStatus(200)
.withHeader("Content-Type", "application/json")
.withBody(validUpdateResponse)));
updater.onlineUpdateCheck();

verify(postRequestedFor(urlEqualTo("/api/v1/versioning/versions/")));
verify(postRequestedFor(urlEqualTo("/api/versions/latest")));
// if the version parameter does not equal config.getVersion, isUpdateAvailable should
// return true, otherwise it should return false
assertEquals(!version.equals(config.getVersion()), config.isUpdateAvailable());
Expand Down

0 comments on commit 4c6a462

Please sign in to comment.