Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for getTtl (0.21 sec)

  1. src/test/java/jcifs/internal/dfs/DfsReferralDataImplTest.java

                assertEquals(0, referralData.getFlags());
            }
    
            @Test
            @DisplayName("Should get TTL")
            void testGetTtl() {
                assertEquals(0, referralData.getTtl());
            }
    
            @Test
            @DisplayName("Should get resolveHashes")
            void testIsResolveHashes() {
                assertFalse(referralData.isResolveHashes());
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 30.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/dfs/ReferralTest.java

            assertEquals(100, referral.getSize());
            assertEquals(1, referral.getServerType());
            assertEquals(0, referral.getRFlags());
            assertEquals(5, referral.getProximity());
            assertEquals(300, referral.getTtl());
            assertEquals(path, referral.getRpath());
            assertEquals(altPath, referral.getAltPath());
            assertEquals(node, referral.getNode());
            assertNull(referral.getSpecialName());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 22K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/dfs/Referral.java

            return this.altPath;
        }
    
        /**
         * Gets the time-to-live value for this referral in seconds.
         *
         * @return the ttl
         */
        public final int getTtl() {
            return this.ttl;
        }
    
        /**
         * Gets the referral path.
         *
         * @return the rpath
         */
        public final String getRpath() {
            return this.rpath;
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/dfs/DfsReferralDataImpl.java

                    + (this.expiration - System.currentTimeMillis()) + "]";
        }
    
        /**
         * Get the time to live for this referral
         *
         * @return the ttl
         */
        public long getTtl() {
            return this.ttl;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see java.lang.Object#hashCode()
         */
        @Override
        public int hashCode() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/NetServerEnumIteratorTest.java

        void testConstructor_NonWorkgroupType_ThrowsException() throws Exception {
            // Given: A non-workgroup type with a host
            when(locator.getType()).thenReturn(SmbConstants.TYPE_SERVER);
            when(locator.getURL()).thenReturn(createSmbURL("smb://server/"));
    
            // When & Then: Constructor should throw SmbException
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/exception/DataStoreCrawlingExceptionTest.java

            // Test that multiple calls to getUrl() return the same value
            String url = "http://example.com/test";
            String message = "Test message";
            Exception cause = new RuntimeException("Test cause");
    
            DataStoreCrawlingException exception = new DataStoreCrawlingException(url, message, cause);
    
            // Call getUrl() multiple times
            assertEquals(url, exception.getUrl());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/http/NtlmHttpURLConnection.java

            if (handshakeComplete) {
                return;
            }
            doHandshake();
            handshakeComplete = true;
        }
    
        @Override
        public URL getURL() {
            return connection.getURL();
        }
    
        @Override
        public int getContentLength() {
            try {
                handshake();
            } catch (final IOException ex) {}
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/cache/CacheLoadingTest.java

        assertEquals(0, stats.hitCount());
    
        assertEquals(ImmutableMap.of(), cache.getAll(ImmutableList.<Integer>of()));
        assertEquals(0, stats.missCount());
        assertEquals(0, stats.loadSuccessCount());
        assertEquals(0, stats.loadExceptionCount());
        assertEquals(0, stats.hitCount());
    
        assertEquals(ImmutableMap.of(1, 1), cache.getAll(asList(1)));
        stats = cache.stats();
        assertEquals(1, stats.missCount());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 85.7K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/DirFileEntryEnumIterator1Test.java

            // Create URL with registered handler
            URL smbUrl = new URL("smb://server/share/dir/");
            lenient().when(locator.getURL()).thenReturn(smbUrl);
        }
    
        // Helper: reflectively set private/protected field on an object
        private static void setField(Object target, Class<?> declaring, String name, Object value) {
            try {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/context/BaseContextTest.java

            assertNotSame(pipe1, pipe2, "Different pipes should be different instances");
    
            assertTrue(resource1.getLocator().getURL().toString().contains("server1"), "First resource should contain server1");
            assertTrue(resource2.getLocator().getURL().toString().contains("server2"), "Second resource should contain server2");
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 15.1K bytes
    - Viewed (0)
Back to top