Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testTimeOperations (0.09 sec)

  1. src/test/java/jcifs/util/EncdecTest.java

            assertThrows(IndexOutOfBoundsException.class, () -> {
                Encdec.dec_uint32le(smallBuffer, 0);
            });
        }
    
        @Test
        @DisplayName("Should handle time encoding/decoding")
        void testTimeOperations() {
            // Given
            Date currentDate = new Date();
            byte[] buffer = new byte[8];
    
            // When - Use direct encoding methods since time constants are private
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/SmbResourceTest.java

            }
        }
    
        @Nested
        @DisplayName("File Time Tests")
        class FileTimeTests {
    
            @Test
            @DisplayName("time methods should return valid timestamps")
            void testTimeOperations() throws CIFSException {
                // Given
                long currentTime = System.currentTimeMillis();
                when(mockResource.lastModified()).thenReturn(currentTime);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 35K bytes
    - Viewed (0)
Back to top