Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 36 for IsPresent (0.17 seconds)

  1. src/test/java/org/codelibs/fess/util/GsaConfigParserTest.java

                    + "</globalparams></config></eef>";
    
            parser.parse(new InputSource(new StringReader(minimalXml)));
    
            assertTrue(parser.getWebConfig().isPresent());
            assertFalse(parser.getFileConfig().isPresent());
            assertEquals(0, parser.getLabelTypes().length);
        }
    
        @Test
        public void test_parseWithFileUrls() {
            GsaConfigParser parser = new GsaConfigParser();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 11.7K bytes
    - Click Count (0)
  2. 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());
        }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 11.1K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/base/EnumsTest.java

        assertThat(Enums.getIfPresent(TestEnum.class, "POODLE")).hasValue(TestEnum.POODLE);
    
        assertThat(Enums.getIfPresent(TestEnum.class, "CHEETO")).isPresent();
        assertThat(Enums.getIfPresent(TestEnum.class, "HONDA")).isPresent();
        assertThat(Enums.getIfPresent(TestEnum.class, "POODLE")).isPresent();
    
        assertThat(Enums.getIfPresent(TestEnum.class, "CHEETO")).hasValue(TestEnum.CHEETO);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 01:05:11 GMT 2026
    - 8.4K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/base/EnumsTest.java

        assertThat(Enums.getIfPresent(TestEnum.class, "POODLE")).hasValue(TestEnum.POODLE);
    
        assertThat(Enums.getIfPresent(TestEnum.class, "CHEETO")).isPresent();
        assertThat(Enums.getIfPresent(TestEnum.class, "HONDA")).isPresent();
        assertThat(Enums.getIfPresent(TestEnum.class, "POODLE")).isPresent();
    
        assertThat(Enums.getIfPresent(TestEnum.class, "CHEETO")).hasValue(TestEnum.CHEETO);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 01:05:11 GMT 2026
    - 8.4K bytes
    - Click Count (0)
  5. guava/src/com/google/common/base/MoreObjects.java

            return !((java.util.Optional<?>) value).isPresent();
          } else if (value instanceof OptionalInt) {
            return !((OptionalInt) value).isPresent();
          } else if (value instanceof OptionalLong) {
            return !((OptionalLong) value).isPresent();
          } else if (value instanceof OptionalDouble) {
            return !((OptionalDouble) value).isPresent();
          } else if (value instanceof Optional) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Feb 05 17:38:41 GMT 2026
    - 16.7K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/dict/mapping/CharMappingFileTest.java

            assertFalse(result.isPresent());
        }
    
        // Test get method with valid data
        @Test
        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();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 18.9K bytes
    - Click Count (0)
  7. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/BuildParams.kt

        get() = systemProperty(BUNDLE_GROOVY_MAJOR).orNull?.toInt() ?: 4
    
    val Project.daemonDebuggingIsEnabled: Boolean
        get() = propertyFromAnySource(DEBUG_DAEMON).isPresent
    
    val Project.launcherDebuggingIsEnabled: Boolean
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Mon Jan 19 05:13:29 GMT 2026
    - 18K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/base/OptionalTest.java

      }
    
      public void testIsPresent_no() {
        assertFalse(Optional.absent().isPresent());
      }
    
      @SuppressWarnings("OptionalOfRedundantMethod") // Unit tests for Optional
      public void testIsPresent_yes() {
        assertTrue(Optional.of("training").isPresent());
      }
    
      public void testGet_absent() {
        Optional<String> optional = Optional.absent();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 10.6K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/dict/protwords/ProtwordsFileTest.java

            OptionalEntity<ProtwordsItem> item = protwordsFile.get(999);
            assertFalse(item.isPresent());
        }
    
        @Test
        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());
        }
    
        @Test
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 21.2K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/app/job/ScriptExecutorJob.java

            if (jobExecutor == null) {
                throw new ScheduledJobException("No jobExecutor: " + scriptType);
            }
    
            if (!jobManager.findJobByUniqueOf(LaJobUnique.of(id)).isPresent()) {
                if (logger.isDebugEnabled()) {
                    logger.debug("Job is running: id={}", id);
                }
                return;
            }
    
            TimeoutTask task = null;
            try {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 11:55:54 GMT 2026
    - 5.7K bytes
    - Click Count (0)
Back to Top