File tree Expand file tree Collapse file tree
src/test/java/org/apache/commons/io/function Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919
2020import static org .junit .jupiter .api .Assertions .assertFalse ;
2121import static org .junit .jupiter .api .Assertions .assertThrows ;
22+ import static org .junit .jupiter .api .Assertions .assertEquals ;
23+ import static org .junit .jupiter .api .Assertions .assertSame ;
2224import static org .junit .jupiter .api .Assertions .assertTrue ;
2325
2426import java .io .IOException ;
@@ -93,6 +95,8 @@ public void testFalse() throws IOException {
9395 // Make sure we keep the argument type
9496 final IOPredicate <String > alwaysFalse = IOPredicate .alwaysFalse ();
9597 assertFalse (alwaysFalse .test ("A" ));
98+ assertEquals (IOPredicate .alwaysFalse (), IOPredicate .alwaysFalse ());
99+ assertSame (IOPredicate .alwaysFalse (), IOPredicate .alwaysFalse ());
96100 }
97101
98102 @ Test
@@ -157,6 +161,8 @@ public void testTrue() throws IOException {
157161 // Make sure we keep the argument type
158162 final IOPredicate <String > alwaysTrue = IOPredicate .alwaysTrue ();
159163 assertTrue (alwaysTrue .test ("A" ));
164+ assertEquals (IOPredicate .alwaysTrue (), IOPredicate .alwaysTrue ());
165+ assertSame (IOPredicate .alwaysTrue (), IOPredicate .alwaysTrue ());
160166 }
161167
162168}
You can’t perform that action at this time.
0 commit comments