- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for IsPresent (0.41 sec)
-
src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessListedClassificationProviderTest.java
assertFalse(result.isPresent()); result = provider.determineAlias(Locale.JAPANESE); assertFalse(result.isPresent()); result = provider.determineAlias(Locale.GERMAN); assertFalse(result.isPresent()); result = provider.determineAlias(null); assertFalse(result.isPresent()); } public void test_determineAlias_multipleLocales() {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 7.5K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessUserLocaleProcessProviderTest.java
OptionalThing<Locale> result3 = provider.findBusinessLocale(null, mockRequestManager); // Verify all return same result assertTrue(result1.isPresent()); assertTrue(result2.isPresent()); assertTrue(result3.isPresent()); assertEquals(Locale.GERMANY, result1.get()); assertEquals(Locale.GERMANY, result2.get()); assertEquals(Locale.GERMANY, result3.get()); }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 11K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/dict/mapping/CharMappingFileTest.java
assertFalse(result.isPresent()); } // Test get method with valid data public void test_get_validData() throws Exception { writeTestFile("a,b => c\nd,e => f\n"); OptionalEntity<CharMappingItem> result1 = charMappingFile.get(1L); assertTrue(result1.isPresent()); CharMappingItem item1 = result1.get();
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 18.5K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/dict/stopwords/StopwordsFileTest.java
assertTrue(result.isPresent()); assertEquals("the", result.get().getInput()); } public void test_get_nonExistingItem() { // Load test data loadTestData(); OptionalEntity<StopwordsItem> result = stopwordsFile.get(999); assertFalse(result.isPresent()); } public void test_get_withNullList() {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 17.6K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessJsonResourceProviderTest.java
// Verify the field naming is set to CAMEL_TO_LOWER_SNAKE OptionalThing<JsonFieldNaming> fieldNamingOpt = option.getFieldNaming(); assertTrue("Field naming should be present", fieldNamingOpt.isPresent()); assertEquals(JsonFieldNaming.CAMEL_TO_LOWER_SNAKE, fieldNamingOpt.get()); } public void test_provideMappingOption_notNull() { // Test that mapping option is never null
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 6.9K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/dict/protwords/ProtwordsFileTest.java
OptionalEntity<ProtwordsItem> item = protwordsFile.get(999); assertFalse(item.isPresent()); } public void test_get_withUnloadedData() { // Test getting item when data is not loaded yet OptionalEntity<ProtwordsItem> item = protwordsFile.get(1); assertTrue(item.isPresent()); assertEquals("test1", item.get().getInput()); }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 20.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/DosErrorTest.java
void testKnownMapping() { final int dosErr = 0x00010001; final int expectedNt = 0xc0000002; Optional<Integer> actual = findNtStatus(dosErr); assertTrue(actual.isPresent(), String.format("Mapping for %08x should exist", dosErr)); assertEquals(expectedNt, actual.get(), String.format("NTSTATUS for %08x should be %08x", dosErr, expectedNt)); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessUserTimeZoneProcessProviderTest.java
OptionalThing<TimeZone> result = provider.findBusinessTimeZone(runtimeMeta, requestManager); // Verify that empty optional is returned assertNotNull(result); assertFalse(result.isPresent()); } // Test getRequestedTimeZone() method public void test_getRequestedTimeZone() { // Execute TimeZone result = provider.getRequestedTimeZone(requestManager);
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 6.9K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Streams.java
* otherwise returns an empty stream. */ public static <T> Stream<T> stream(com.google.common.base.Optional<T> optional) { return optional.isPresent() ? Stream.of(optional.get()) : Stream.empty(); } /** * If a value is present in {@code optional}, returns a stream containing only that element, * otherwise returns an empty stream. *
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 37K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/rank/fusion/RankFusionSearcherTest.java
assertNotNull(result); assertEquals(query, testSearcher.lastQuery); assertEquals(params, testSearcher.lastParams); assertTrue(testSearcher.lastUserBean.isPresent()); assertEquals(user, testSearcher.lastUserBean.get()); } public void test_search_withNullQuery() { // Test search with null query
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 10.3K bytes - Viewed (0)