Skip to content

Commit

Permalink
fix get
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed Nov 20, 2023
1 parent 2d8a98e commit 3ea8bf2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions integration/java/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ private static void assertGetEntries(Client client) throws ClientException {
throw new RuntimeException("Test assertGetEntries failed: Entry, got: " + todos.getEntry().size());
}

if (!todos.getEntry()[0].getTitle().equals("foo")) {
throw new RuntimeException("Test assertGetEntries failed: Entry.0.Title, got: " + todos.getEntry()[0].getTitle());
if (!todos.getEntry().get(0).getTitle().equals("foo")) {
throw new RuntimeException("Test assertGetEntries failed: Entry.0.Title, got: " + todos.getEntry().get(0).getTitle());
}

if (!todos.getEntry()[1].getTitle().equals("bar")) {
throw new RuntimeException("Test assertGetEntries failed: Entry.1.Title, got: " + todos.getEntry()[1].getTitle());
if (!todos.getEntry().get(1).getTitle().equals("bar")) {
throw new RuntimeException("Test assertGetEntries failed: Entry.1.Title, got: " + todos.getEntry().get(1).getTitle());
}
}

Expand Down

0 comments on commit 3ea8bf2

Please sign in to comment.