Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 224 for EXISTS (0.19 sec)

  1. src/test/java/org/codelibs/fess/thumbnail/impl/CommandGeneratorTest.java

            final File outputFile = new File(nonExistentParent, "output.txt");
    
            try {
                assertFalse(nonExistentParent.exists());
                assertFalse(outputFile.exists());
    
                generator.setCommandList(Collections.singletonList("echo test"));
                // This should handle parent directory creation
                generator.generate("test_id", outputFile);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sun Aug 31 08:19:00 UTC 2025
    - 16.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbFileTest.java

                // Act & Assert
                assertTrue(smbFile.exists());
            }
    
            @Test
            void testExistsReturnsFalseWhenNotFound() throws SmbException, CIFSException {
                // Arrange
                doReturn(false).when(smbFile).exists();
    
                // Act & Assert
                assertFalse(smbFile.exists());
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/io/FilesTest.java

      }
    
      public void testTouch() throws IOException {
        File temp = createTempFile();
        assertTrue(temp.exists());
        assertTrue(temp.delete());
        assertFalse(temp.exists());
        Files.touch(temp);
        assertTrue(temp.exists());
        Files.touch(temp);
        assertTrue(temp.exists());
    
        assertThrows(
            IOException.class,
            () ->
                Files.touch(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/entity/SearchRenderData.java

        }
    
        /**
         * Sets whether a next page exists.
         *
         * @param existNextPage true if a next page exists
         */
        public void setExistNextPage(final boolean existNextPage) {
            this.existNextPage = existNextPage;
        }
    
        /**
         * Sets whether a previous page exists.
         *
         * @param existPrevPage true if a previous page exists
         */
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/io/FilesTest.java

      }
    
      public void testTouch() throws IOException {
        File temp = createTempFile();
        assertTrue(temp.exists());
        assertTrue(temp.delete());
        assertFalse(temp.exists());
        Files.touch(temp);
        assertTrue(temp.exists());
        Files.touch(temp);
        assertTrue(temp.exists());
    
        assertThrows(
            IOException.class,
            () ->
                Files.touch(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/SmbResourceTest.java

            }
    
            @Test
            @DisplayName("exists should indicate resource existence")
            void testExists() throws CIFSException {
                // Given
                when(mockResource.exists()).thenReturn(true);
    
                // When
                boolean exists = mockResource.exists();
    
                // Then
                assertTrue(exists, "Resource should exist");
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 35K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/util/ResourceUtil.java

                if (webinfPath != null && Files.exists(Paths.get(webinfPath))) {
                    return Paths.get(webinfPath, names);
                }
            } catch (final Throwable e) {
                // ignore
            }
            final String webinfBase = root + base;
            if (Files.exists(Paths.get(webinfBase))) {
                return Paths.get(webinfBase, names);
            }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  8. compat/maven-compat/src/test/java/org/apache/maven/repository/legacy/DefaultWagonManagerTest.java

            ArtifactRepository repo = createStringRepo();
    
            assertThrows(ResourceDoesNotExistException.class, () -> wagonManager.getArtifact(artifact, repo, null, false));
    
            assertFalse(artifact.getFile().exists());
        }
    
        @Test
        void testGetMissingJarForced() throws TransferFailedException, UnsupportedProtocolException, IOException {
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 12.9K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/thumbnail/impl/HtmlTagBasedGenerator.java

            }
    
            if (outputFile.exists()) {
                if (logger.isDebugEnabled()) {
                    logger.debug("The thumbnail file exists: {}", outputFile.getAbsolutePath());
                }
                return true;
            }
    
            final File parentFile = outputFile.getParentFile();
            if (!parentFile.exists()) {
                parentFile.mkdirs();
            }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  10. tests/lru_test.go

    	lc.Add("key1", nil)
    
    	value, exists := lc.Get("key1")
    	if value != nil || !exists {
    		t.Fatalf("unexpected value or existence flag for key1: value=%v, exists=%v", value, exists)
    	}
    
    	// Adding an entry with the same key but different value
    	newVal := "val1"
    	lc.Add("key1", &newVal)
    
    	value, exists = lc.Get("key1")
    	if value != &newVal || !exists {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Sun May 25 07:40:40 UTC 2025
    - 10.4K bytes
    - Viewed (0)
Back to top