Skip to content

Commit 4319ff4

Browse files
committed
chore: Refactor test
1 parent f6cde7f commit 4319ff4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/org/zendesk/client/v2/RealSmokeTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1594,7 +1594,7 @@ public void lookupOrganizationByExternalId() throws Exception {
15941594
assertNotNull(resultOrganization);
15951595

15961596
Iterable<Organization> or = instance.lookupOrganizationsByExternalId("i");
1597-
assertTrue(or.iterator().hasNext());
1597+
assertEquals(1, StreamSupport.stream(or.spliterator(), false).count());
15981598

15991599
assertThrows(IllegalArgumentException.class, () -> instance.lookupOrganizationsByExternalId(""));
16001600
}

0 commit comments

Comments
 (0)