Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 53 for 3600000 (5.12 sec)

  1. src/test/java/jcifs/SmbTreeHandleTest.java

            assertEquals(0L, smbTreeHandle.getServerTimeZoneOffset(), "Server time zone offset should be 0");
            when(smbTreeHandle.getServerTimeZoneOffset()).thenReturn(3600000L);
            assertEquals(3600000L, smbTreeHandle.getServerTimeZoneOffset(), "Server time zone offset should be 3600000");
        }
    
        /**
         * Test for getServerTimeZoneOffset() method throwing CIFSException.
         * @throws CIFSException
         */
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/lease/DirectoryLeasingIntegrationTest.java

            when(mockFile1.lastModified()).thenReturn(System.currentTimeMillis() - 3600000);
            when(mockFile1.isDirectory()).thenReturn(false);
            when(mockFile1.getAttributes()).thenReturn(0x20); // FILE_ATTRIBUTE_ARCHIVE
            when(mockFile1.createTime()).thenReturn(System.currentTimeMillis() - 7200000);
            when(mockFile1.lastAccess()).thenReturn(System.currentTimeMillis() - 1800000);
    
            when(mockFile2.getName()).thenReturn("subfolder");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb1/SMB1SigningDigest.java

                } else {
                    // t not in DST so subtract 1 hour
                    t -= 3600000;
                }
            } else // not in DST
            if (cfg.getLocalTimezone().inDaylightTime(new Date(t))) {
                // t is in DST so add 1 hour
                t += 3600000;
            } else {
                // t isn't in DST either
            }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/SMB1SigningDigestTest.java

                    .thenReturn(false); // test time
            SMB1SigningDigest.writeUTime(mockConfig, testTime, dst, 0);
    
            expectedSeconds = (int) ((testTime - 3600000) / 1000L);
            actualSeconds = SMBUtil.readInt4(dst, 0);
            assertEquals(expectedSeconds, actualSeconds);
        }
    
        @Test
        @DisplayName("Test writeUTime when not in DST")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/ServerMessageBlock.java

                    } else {
                        // t not in DST so subtract 1 hour
                        t -= 3600000;
                    }
                } else // not in DST
                if (TZ.inDaylightTime(new Date(t))) {
                    // t is in DST so add 1 hour
                    t += 3600000;
                } else {
                    // t isn't in DST either
                }
            }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java

            // System time
            SMBUtil.writeTime(System.currentTimeMillis(), buffer, offset + 40);
    
            // Server start time
            SMBUtil.writeTime(System.currentTimeMillis() - 3600000, buffer, offset + 48);
    
            // Security buffer offset and length
            SMBUtil.writeInt2(128, buffer, offset + 56); // Offset
            SMBUtil.writeInt2(0, buffer, offset + 58); // Length
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/SmbFileIntegrationTest.java

            long originalTime = file.lastModified();
            assertTrue(originalTime > 0, "File should have a valid timestamp");
    
            // Test setting timestamp 1 hour ago
            long testTime = System.currentTimeMillis() - 3600000;
            file.setLastModified(testTime);
    
            long retrievedTime = file.lastModified();
            // Allow for reasonable precision differences
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 56K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationResponseTest.java

        void setUp() {
            mockConfig = mock(Configuration.class);
        }
    
        @Test
        void testConstructor() {
            // Test constructor with positive timezone offset
            long serverTimeZoneOffset = 3600000L; // 1 hour in milliseconds
            response = new SmbComQueryInformationResponse(mockConfig, serverTimeZoneOffset);
    
            assertNotNull(response);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/util/InputValidatorTest.java

            assertDoesNotThrow(() -> InputValidator.validateTimeout(3600000L, "test"));
    
            assertThrows(IllegalArgumentException.class, () -> InputValidator.validateTimeout(-1L, "test"));
            assertThrows(IllegalArgumentException.class, () -> InputValidator.validateTimeout(3600001L, "test"));
        }
    
        @Test
        @DisplayName("Test string sanitization for logging")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  10. fess-crawler/src/test/java/org/codelibs/fess/crawler/interval/impl/DefaultIntervalControllerTest.java

            controller.setDelayMillisAfterProcessing(0L);
    
            final long start = System.nanoTime();
            controller.delayAfterProcessing();
            final long elapsed = (System.nanoTime() - start) / 1000000;
    
            assertTrue("No delay expected", elapsed < 50); // Should be nearly instant
        }
    
        /**
         * Test delayAfterProcessing with actual delay
         */
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 20 08:58:39 UTC 2025
    - 8.1K bytes
    - Viewed (0)
Back to top