- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 54 for 3600000 (4.24 sec)
-
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) -
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) -
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) -
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) -
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) -
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); // LengthRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 32.5K bytes - Viewed (0) -
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) -
src/test/java/org/codelibs/core/text/DecimalFormatUtilTest.java
/** * @throws Exception */ public void testNormalize() throws Exception { assertEquals("1", "1000.00", DecimalFormatUtil.normalize("1,000.00", Locale.JAPAN)); assertEquals("2", "1000", DecimalFormatUtil.normalize("1,000", Locale.JAPAN)); assertEquals("3", "1000.00", DecimalFormatUtil.normalize("1.000,00", Locale.GERMAN)); }Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 1.1K bytes - Viewed (0) -
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) -
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)