- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for testGetIfPresent_caseSensitive (0.12 sec)
-
guava-tests/test/com/google/common/base/EnumsTest.java
assertThat(Enums.getIfPresent(TestEnum.class, "HONDA")).hasValue(TestEnum.HONDA); assertThat(Enums.getIfPresent(TestEnum.class, "POODLE")).hasValue(TestEnum.POODLE); } public void testGetIfPresent_caseSensitive() { assertThat(Enums.getIfPresent(TestEnum.class, "cHEETO")).isAbsent(); assertThat(Enums.getIfPresent(TestEnum.class, "Honda")).isAbsent(); assertThat(Enums.getIfPresent(TestEnum.class, "poodlE")).isAbsent();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed May 29 16:29:37 UTC 2024 - 8.7K bytes - Viewed (0)