Searched refs:optionalName (Results 1 – 2 of 2) sorted by relevance
39 Optional<String> optionalName = Optional.absent(); in testAbsent() local40 assertFalse(optionalName.isPresent()); in testAbsent()56 Optional<String> optionalName = Optional.fromNullable("bob"); in testFromNullable() local57 assertEquals("bob", optionalName.get()); in testFromNullable()
42 Optional<String> optionalName = Optional.absent(); in testAbsent() local43 assertFalse(optionalName.isPresent()); in testAbsent()59 Optional<String> optionalName = Optional.fromNullable("bob"); in testFromNullable() local60 assertEquals("bob", optionalName.get()); in testFromNullable()