- Sort Score
- Num 10 results
- Language All
Results 81 - 90 of 174 for currentTimeMillis (0.09 seconds)
-
src/test/java/jcifs/DfsReferralDataTest.java
verify(mockReferralData).getPath(); } @Test @DisplayName("Should get expiration") void testGetExpiration() { // Given long expiration = System.currentTimeMillis(); when(mockReferralData.getExpiration()).thenReturn(expiration); // When long result = mockReferralData.getExpiration(); // Then assertEquals(expiration, result);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.1K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/ds/AbstractDataStoreTest.java
readerThreads[i] = new Thread(() -> { try { startLatch.await(); // Wait for start signal long endTime = System.currentTimeMillis() + testDurationMs; while (System.currentTimeMillis() < endTime) { observations[threadIndex].add(dataStore.alive); Thread.yield(); // Allow other threads to run }
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 12.8K bytes - Click Count (1) -
src/test/java/org/codelibs/fess/rank/fusion/RankFusionProcessorErrorHandlingTest.java
// Should complete even with slow searcher final long startTime = System.currentTimeMillis(); final List<Map<String, Object>> results = processor.search("*", new TestSearchRequestParams(0, 10, 0), OptionalThing.empty()); final long elapsed = System.currentTimeMillis() - startTime; assertNotNull(results);Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 14.3K bytes - Click Count (0) -
src/main/java/jcifs/smb/DfsImpl.java
private static class CacheEntry<T> { long expiration; Map<String, T> map; CacheEntry(final long ttl) { this.expiration = System.currentTimeMillis() + ttl * 1000L; this.map = new ConcurrentHashMap<>(); } } private static class NegativeCacheEntry<T> extends CacheEntry<T> { /** * @param ttl */Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 29.7K bytes - Click Count (0) -
compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/MavenArtifact.java
this.repositoryUrl = repositoryUrl + '/'; } else { this.repositoryUrl = repositoryUrl; } this.resource = resource; this.transferStartTime = System.currentTimeMillis(); } @Override public String getRepositoryUrl() { return repositoryUrl; } @Override public String getName() { String name = resource.getName();Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 2.3K bytes - Click Count (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt
init { ecdsa256() } /** * Sets the certificate to be valid in ```[notBefore..notAfter]```. Both endpoints are specified * in the format of [System.currentTimeMillis]. Specify -1L for both values to use the default * interval, 24 hours starting when the certificate is created. */ fun validityInterval( notBefore: Long, notAfter: Long,Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 21.6K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/DfsTest.java
@Test void testCacheEntry() { // Test with a specific TTL long ttl = 600; // 10 minutes Dfs.CacheEntry cacheEntry = new Dfs.CacheEntry(ttl); long expectedExpiration = System.currentTimeMillis() + ttl * 1000L; assertTrue(cacheEntry.expiration >= expectedExpiration - 100 && cacheEntry.expiration <= expectedExpiration + 100); assertNotNull(cacheEntry.map);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.6K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CloseResponseTest.java
// Reserved (4 bytes) SMBUtil.writeInt4(0, buffer, bufferIndex + 4); // Creation Time (8 bytes) long creationTime = System.currentTimeMillis() * 10000L + 116444736000000000L; SMBUtil.writeInt8(creationTime, buffer, bufferIndex + 8); // Last Access Time (8 bytes) long lastAccessTime = creationTime + 1000000L;
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 26.9K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/ServerMessageBlockTest.java
assertEquals(value, ServerMessageBlock.readInt8(buffer, 0)); } @Test void testTimeReadWrite() { byte[] buffer = new byte[8]; long time = System.currentTimeMillis(); ServerMessageBlock.writeTime(time, buffer, 0); long readTime = ServerMessageBlock.readTime(buffer, 0); // Precision may be lost, so check within a second
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.9K bytes - Click Count (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/UpgradeResultTest.java
} long startTime = System.currentTimeMillis(); UpgradeResult result = new UpgradeResult(largePomSet, largePomSet, Set.of()); long endTime = System.currentTimeMillis(); // Performance assertion - should complete within reasonable time long duration = endTime - startTime;Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Sat Jun 07 06:22:47 GMT 2025 - 9.4K bytes - Click Count (0)