Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 42 for existence (2.5 sec)

  1. src/main/java/jcifs/smb1/smb1/SmbFile.java

         *
         * @return <code>true</code> if the resource exists or is alive or
         *         <code>false</code> otherwise
         * @throws SmbException if an error occurs while checking existence
         */
    
        public boolean exists() throws SmbException {
    
            if (attrExpiration > System.currentTimeMillis()) {
                return isExists;
            }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 112.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/netbios/NameServiceClientImplTest.java

            UnknownHostException exception = assertThrows(UnknownHostException.class, () -> {
                nameServiceClient.getNbtByName("NONEXISTENT-FAST-FAIL");
            }, "Should throw UnknownHostException for non-existent NetBIOS name");
    
            // Verify the exception message indicates name resolution failure
            assertTrue(exception.getMessage().contains("NONEXISTENT") || exception.getMessage().contains("unknown")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/witness/WitnessIntegrationTest.java

            // Test operations on empty service
            assertEquals(0, mockService.getRegistrationCount());
            assertFalse(mockService.hasRegistration("non-existent"));
            assertFalse(mockService.unregisterWitness("non-existent"));
            assertFalse(mockService.processHeartbeat("non-existent", 1));
    
            // Test registration with null/empty values
            String regId1 = mockService.registerWitness(null, "192.168.1.100", 1);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/suggest/SuggesterResourceLoadingTest.java

            // Test the pattern used in getDefaultMappings/getDefaultIndexSettings
            // with a non-existent resource
            try {
                try (final InputStream is = getClass().getClassLoader().getResourceAsStream("non/existent/resource.json")) {
                    if (is == null) {
                        throw new IOException("Resource not found: non/existent/resource.json");
                    }
                    // This line should not be reached
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Mon Nov 24 03:40:05 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/beans/util/BeanMap.java

    package org.codelibs.core.beans.util;
    
    import java.util.LinkedHashMap;
    
    import org.codelibs.core.exception.IllegalKeyOfBeanMapException;
    
    /**
     * A map with String keys that throws an exception when accessing (get) a non-existent key.
     *
     * @author higa
     */
    public class BeanMap extends LinkedHashMap<String, Object> {
    
        private static final long serialVersionUID = 1;
    
        /**
         * Creates a new {@link BeanMap}.
         */
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat Jul 05 00:11:05 UTC 2025
    - 1.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/PreauthIntegrityServiceTest.java

            // Should not throw exception
            lenientService.updatePreauthHash("non-existent", "test".getBytes());
    
            // With enforcement enabled, should throw exception
            assertThrows(CIFSException.class, () -> {
                preauthService.updatePreauthHash("non-existent", "test".getBytes());
            });
        }
    
        @Test
        @DisplayName("Test context invalidation")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  7. fess-crawler/src/test/java/org/codelibs/fess/crawler/util/TemporaryFileInputStreamTest.java

                }
            }
        }
    
        public void test_fileNotFoundException() {
            // Test with non-existent file
            File nonExistentFile = new File("/tmp/non-existent-file-" + System.currentTimeMillis() + ".tmp");
    
            try {
                new TemporaryFileInputStream(nonExistentFile);
                fail("Should throw FileNotFoundException");
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sat Nov 22 13:28:22 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/curl/io/ContentCacheTest.java

            tempFile = new File(Curl.tmpDir, "non-existent-file.tmp");
            assertFalse(tempFile.exists());
    
            ContentCache cache = new ContentCache(tempFile);
    
            // Should throw IOException when file doesn't exist
            try {
                cache.close();
                fail("Expected IOException for non-existent file");
            } catch (IOException e) {
    Registered: Sat Dec 20 09:13:53 UTC 2025
    - Last Modified: Thu Nov 20 13:34:13 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/util/SecureKeyManagerTest.java

            assertTrue(laterAge >= 200, "Age should increase after delay");
        }
    
        @Test
        public void testKeyAgeNonExistent() {
            assertEquals(-1, keyManager.getKeyAge("non-existent"), "Non-existent key should return -1 for age");
        }
    
        @Test
        public void testConfigureKeyRotation() {
            // Test that configuration doesn't throw
            keyManager.configureKeyRotation(60000);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  10. fess-crawler/src/test/java/org/codelibs/fess/crawler/entity/ExtractDataTest.java

            assertEquals("new_value1", retrievedValues[0]);
            assertEquals("new_value2", retrievedValues[1]);
        }
    
        public void test_getValuesNonExistentKey() {
            // Test getValues with non-existent key
            ExtractData data = new ExtractData();
    
            String[] values = data.getValues("nonexistent");
            assertNull(values);
        }
    
        public void test_getKeySet() {
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Mon Nov 24 03:59:47 UTC 2025
    - 9.9K bytes
    - Viewed (0)
Back to top