Home
last modified time | relevance | path

Searched refs:checkPresent (Results 1 – 4 of 4) sorted by relevance

/libcore/ojluni/src/test/java/util/Optional/
DBasic.java99 void checkPresent(Optional<String> opt, String expected) { in checkPresent() method in Basic
150 checkPresent(Optional.of("xyzzy"), "xyzzy"); in testOfPresent()
160 checkPresent(Optional.ofNullable("xyzzy"), "xyzzy"); in testOfNullablePresent()
175 checkPresent(Optional.of("xyzzy").filter(s -> s.equals("xyzzy")), "xyzzy"); in testFilterTrue()
185 checkPresent(Optional.of("xyzzy").map(s -> s.replace("xyzzy", "plugh")), "plugh"); in testMapPresent()
201 checkPresent(Optional.of("xyzzy") in testFlatMapPresentReturnPresent()
217 checkPresent(Optional_or(Optional.<String>empty(), () -> Optional.of("plugh")), "plugh"); in testOrEmptyPresent()
224checkPresent(Optional_or(Optional.of("xyzzy"), () -> { fail(); return Optional.of("plugh"); }), "x… in testOrPresentDontCare()
DBasicInt.java95 void checkPresent(OptionalInt opt, int expected) { in checkPresent() method in BasicInt
139 checkPresent(OptionalInt.of(INTVAL), INTVAL); in testPresent()
DBasicDouble.java94 void checkPresent(OptionalDouble opt, double expected) { in checkPresent() method in BasicDouble
139 checkPresent(OptionalDouble.of(DOUBLEVAL), DOUBLEVAL); in testPresent()
DBasicLong.java94 void checkPresent(OptionalLong opt, long expected) { in checkPresent() method in BasicLong
139 checkPresent(OptionalLong.of(LONGVAL), LONGVAL); in testPresent()