Skip to content

Commit

Permalink
remove locks method from java
Browse files Browse the repository at this point in the history
  • Loading branch information
alfonsobries committed Jul 2, 2024
1 parent 4c48a38 commit 566f8d6
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 22 deletions.
10 changes: 0 additions & 10 deletions src/integration/java/org/arkecosystem/client/api/WalletsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -130,16 +130,6 @@ void votesWithParams() throws IOException {
assertThat((Map<String, ?>) actual.get("meta"), hasEntry("count", 3.0));
}

@Test
void locks() throws IOException {
Map<String, Object> actual = connection.api().wallets.locks("D6i8P5N44rFto6M6RALyUXLLs7Q1A1WREW");
logger.info("actual: {}", actual);

assertThat(actual, hasKey("meta"));
assertThat(actual, hasKey("data"));
assertThat((Map<String, ?>) actual.get("meta"), hasEntry("count", 0.0));
}

@Test
void top() throws IOException {
Map<String, Object> actual = connection.api().wallets.top();
Expand Down
4 changes: 0 additions & 4 deletions src/main/java/org/arkecosystem/client/api/Wallets.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,4 @@ public Map<String, Object> receivedTransactions(String id) throws IOException {
public Map<String, Object> votes(String id) throws IOException {
return this.client.get("wallets/" + id + "/votes", params);
}

public Map<String, Object> locks(String id) throws IOException {
return this.client.get("wallets/" + id + "/locks");
}
}
9 changes: 1 addition & 8 deletions src/test/java/org/arkecosystem/client/api/WalletsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,7 @@ void votesWithParams() throws IOException {
Map<String, Object> actual = connection.api().wallets.param("page", 1).votes("dummy");
assertTrue((boolean) actual.get("success"));
}

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


@Test
void top() throws IOException {
Connection connection = MockHelper.connection();
Expand Down

0 comments on commit 566f8d6

Please sign in to comment.