Skip to content

Commit

Permalink
Merge branch 'feat/mainsail' of github.com:ArkEcosystem/java-client i…
Browse files Browse the repository at this point in the history
…nto feat/client-api-split
  • Loading branch information
alfonsobries committed Aug 23, 2024
2 parents dedcd73 + 9157c20 commit 020acf4
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/test/java/org/arkecosystem/client/api/RoundsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,26 @@ void show() throws IOException {
Map<String, Object> actual = client.api().rounds.show(12345);
assertTrue((boolean) actual.get("success"));
}

@Test
void all() throws IOException {
Connection connection = MockHelper.connection();
Map<String, Object> actual = connection.api().rounds.all();
assertTrue((boolean) actual.get("success"));
}

@Test
void allWithParams() throws IOException {
Connection connection = MockHelper.connection();
Map<String, Object> actual =
connection.api().rounds.param("page", 1).param("limit", 100).all();
assertTrue((boolean) actual.get("success"));
}

@Test
void show() throws IOException {
Connection connection = MockHelper.connection();
Map<String, Object> actual = connection.api().rounds.show(12345);
assertTrue((boolean) actual.get("success"));
}
}

0 comments on commit 020acf4

Please sign in to comment.