Skip to content

Commit

Permalink
Extend
Browse files Browse the repository at this point in the history
  • Loading branch information
giovannizotta committed Feb 10, 2024
1 parent 57fa6ae commit ce8f078
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ boolean before(Collection<T> collection) {
collection.size() == 0,
collection.size() <= 0,
collection.size() < 1,
Iterables.isEmpty(collection));
Iterables.isEmpty(collection),
collection.stream().findAny().isEmpty());
}

@BeforeTemplate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ ImmutableSet<Boolean> testCollectionIsEmpty() {
ImmutableSet.of(5).size() > 0,
ImmutableSet.of(6).size() >= 1,
Iterables.isEmpty(ImmutableSet.of(7)),
ImmutableSet.of(8).asList().isEmpty());
ImmutableSet.of(8).stream().findAny().isEmpty(),
ImmutableSet.of(9).asList().isEmpty());
}

ImmutableSet<Integer> testCollectionSize() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ ImmutableSet<Boolean> testCollectionIsEmpty() {
!ImmutableSet.of(5).isEmpty(),
!ImmutableSet.of(6).isEmpty(),
ImmutableSet.of(7).isEmpty(),
ImmutableSet.of(8).isEmpty());
ImmutableSet.of(8).isEmpty(),
ImmutableSet.of(9).isEmpty());
}

ImmutableSet<Integer> testCollectionSize() {
Expand Down

0 comments on commit ce8f078

Please sign in to comment.