Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 153 for currentTimeMillis (0.13 sec)

  1. src/test/java/jcifs/SmbResourceTest.java

            @Test
            @DisplayName("time methods should return valid timestamps")
            void testTimeOperations() throws CIFSException {
                // Given
                long currentTime = System.currentTimeMillis();
                when(mockResource.lastModified()).thenReturn(currentTime);
                when(mockResource.lastAccess()).thenReturn(currentTime - 1000);
                when(mockResource.createTime()).thenReturn(currentTime - 2000);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 35K bytes
    - Viewed (0)
  2. compat/maven-compat/src/test/java/org/apache/maven/artifact/testutils/TestFileManager.java

            try {
                Thread.sleep(20);
            } catch (InterruptedException e) {
                // ignore
            }
    
            File dir = new File(TEMP_DIR_PATH, baseFilename + System.currentTimeMillis());
    
            dir.mkdirs();
            markForDeletion(dir);
    
            return dir;
        }
    
        public synchronized File createTempFile() throws IOException {
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseInputValidationTest.java

            SMBUtil.writeInt4(1024 * 1024, buffer, 36); // maxWriteSize
    
            // System time and server start time
            SMBUtil.writeTime(System.currentTimeMillis(), buffer, 40);
            SMBUtil.writeTime(System.currentTimeMillis(), buffer, 48);
    
            // Security buffer offset and length (no security buffer)
            SMBUtil.writeInt2(0, buffer, 56); // offset
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  4. api/maven-api-spi/src/main/java/org/apache/maven/api/spi/ModelTransformer.java

     *     public Model transformEffectiveModel(Model model) throws ModelTransformerException {
     *         // Add a custom property to all models
     *         model.getProperties().put("custom.timestamp", System.currentTimeMillis());
     *         return model;
     *     }
     * }
     * </pre>
     *
     * @since 4.0.0
     */
    @Experimental
    @Consumer
    @Named
    public interface ModelTransformer extends SpiService {
    
        /**
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Thu Apr 03 13:33:59 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbTransportImpl.java

                final boolean forceSigning) {
            this.transportContext = tc;
    
            this.signingEnforced = forceSigning || this.getContext().getConfig().isSigningEnforced();
            this.sessionExpiration = System.currentTimeMillis() + tc.getConfig().getSessionTimeout();
    
            this.address = address;
            this.port = port;
            this.localAddr = localAddr;
            this.localPort = localPort;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 69.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SmbFileTest.java

                long expectedTime = System.currentTimeMillis();
                doReturn(expectedTime).when(smbFile).lastModified();
    
                // Act & Assert
                assertEquals(expectedTime, smbFile.lastModified());
            }
    
            @Test
            void testSetLastModified() throws SmbException {
                // Arrange
                long newTime = System.currentTimeMillis();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/netbios/NameServiceClient.java

                                Hexdump.hexdump(log, snd_buf, 0, out.getLength());
                            }
                        }
    
                        final long start = System.currentTimeMillis();
                        while (timeout > 0) {
                            response.wait(timeout);
    
                            /* JetDirect printer can respond to regular broadcast query
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  8. fess-crawler-opensearch/src/main/java/org/codelibs/fess/crawler/service/impl/OpenSearchUrlQueueService.java

                return;
            }
            final OpenSearchUrlQueue urlQueue = new OpenSearchUrlQueue();
            urlQueue.setSessionId(sessionId);
            urlQueue.setUrl(url);
            urlQueue.setCreateTime(System.currentTimeMillis());
            urlQueue.setLastModified(0L);
            urlQueue.setDepth(0);
            urlQueue.setMethod(Constants.GET_METHOD);
            insert(urlQueue);
        }
    
        /**
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Thu Aug 07 02:55:08 UTC 2025
    - 17K bytes
    - Viewed (1)
  9. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessApiFailureHookTest.java

            assertEquals("false", config.getApiJsonResponseExceptionIncluded());
        }
    
        // Test error code generation
        public void test_errorCodeGeneration() {
            long timestamp = System.currentTimeMillis();
            String errorCode = "error_code:" + Long.toHexString(timestamp);
    
            assertTrue(errorCode.startsWith("error_code:"));
            assertTrue(errorCode.length() > 11); // "error_code:" is 11 chars
        }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 7K bytes
    - Viewed (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/CacheCorruptionTest.kt

       *     positive values yield dates in the future.
       */
      private fun formatDate(
        delta: Long,
        timeUnit: TimeUnit,
      ): String? = formatDate(Date(System.currentTimeMillis() + timeUnit.toMillis(delta)))
    
      private fun formatDate(date: Date): String? {
        val rfc1123: DateFormat = SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss zzz", Locale.US)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 6K bytes
    - Viewed (0)
Back to top