Skip to content

Commit

Permalink
Traversable implements CanBeEmpty 2/2
Browse files Browse the repository at this point in the history
  • Loading branch information
mP1 committed Mar 25, 2024
1 parent e8ff558 commit 0dd8528
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/main/java/walkingkooka/tree/TraversableTesting2.java
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,13 @@ default <TT> void checkCached(final T traversable,
assertSame(value, value2, () -> traversable + " did not cache " + property);
}

// CanBeEmptyTesting................................................................................................

@Override
default T createCanBeEmpty() {
return this.createObject();
}

// HashcodeAndEqualityTesting.......................................................................................

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,10 @@ public final String isMethodTypeNameSuffix() {

@Override
public final Predicate<String> isMethodIgnoreMethodFilter() {
return (m) -> m.equals("isRoot") || m.equals("parentOrFail") || m.equals("isPure");
return (m) -> m.equals("isRoot") ||
m.equals("parentOrFail") ||
m.equals("isPure") ||
m.equals("isEmpty");
}

// ClassTestCase.........................................................................................
Expand Down

0 comments on commit 0dd8528

Please sign in to comment.