- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for 345 (0.02 sec)
-
android/guava-tests/test/com/google/common/base/StopwatchTest.java
} public void testElapsed_whileRunning() { ticker.advance(78); stopwatch.start(); assertEquals(0, stopwatch.elapsed(NANOSECONDS)); ticker.advance(345); assertEquals(345, stopwatch.elapsed(NANOSECONDS)); } public void testElapsed_notRunning() { ticker.advance(1); stopwatch.start(); ticker.advance(4); stopwatch.stop(); ticker.advance(9);
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 6.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/CacheEvictionTest.java
// re-order getAll(cache, asList(0, 1, 2)); CacheTesting.drainRecencyQueues(cache); assertThat(keySet).containsExactly(3, 4, 5, 6, 7, 8, 9, 0, 1, 2); // evict 3, 4, 5 getAll(cache, asList(10, 11, 12)); CacheTesting.drainRecencyQueues(cache); assertThat(keySet).containsExactly(6, 7, 8, 9, 0, 1, 2, 10, 11, 12); // re-order getAll(cache, asList(6, 7, 8));Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 18:19:59 UTC 2025 - 15.1K bytes - Viewed (0) -
src/test/java/org/codelibs/curl/io/ContentOutputStreamTest.java
ContentOutputStream cos = new ContentOutputStream(5, Curl.tmpDir); cos.write(new byte[] { 0, 1, 2 }); assertTrue(cos.isInMemory()); cos.write(new byte[] { 3, 4, 5 }); // Total 6 bytes, exceeds threshold of 5 assertFalse(cos.isInMemory()); File file = cos.getFile(); assertTrue(file.exists()); cos.close(); } @Test
Registered: Sat Dec 20 09:13:53 UTC 2025 - Last Modified: Wed Nov 12 14:01:04 UTC 2025 - 9.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java
@Test @DisplayName("Should handle boundary values for structure size") void testBoundaryValuesForStructureSize() { // Test boundary values around 4 int[] boundaryValues = { 3, 4, 5 }; for (int value : boundaryValues) { byte[] buffer = new byte[10]; SMBUtil.writeInt2(value, buffer, 0); if (value == 4) {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.1K bytes - Viewed (0) -
src/test/java/jcifs/smb1/netbios/SocketInputStreamTest.java
void multipleMessagesAreReadSequentially() throws IOException { // Create two messages byte[] data1 = new byte[] { 1, 2 }; byte[] data2 = new byte[] { 3, 4, 5 }; byte[] fullData = concat(messageHeader(2), data1, messageHeader(3), data2); InputStream in = new ByteArrayInputStream(fullData); SocketInputStream sis = new SocketInputStream(in);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.2K bytes - Viewed (0) -
src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java
log.warn("NTLMv1 NTLM response is deprecated and insecure. Consider using NTLMv2."); yield NtlmUtil.getNTLMResponse(getPasswordAsCharArray(), chlng); } case 3, 4, 5 -> { // NTLMv2 - returns empty for unicode hash as NTLMv2 doesn't use it yield new byte[0]; } default -> { // Default to NTLMv2 behavior (empty response)
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 30.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/OrderingTest.java
assertListImmutable(result); assertEquals(ImmutableList.of(-1, 3, 4, 5), result); } public void testLeastOfIterable_simple_n_withNullElement() { List<@Nullable Integer> list = asList(3, 4, 5, null, -1); List<@Nullable Integer> result = Ordering.<Integer>natural().nullsLast().leastOf(list, list.size()); assertTrue(result instanceof RandomAccess); assertListImmutable(result);
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Fri Oct 10 23:13:45 UTC 2025 - 42.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/OrderingTest.java
assertListImmutable(result); assertEquals(ImmutableList.of(-1, 3, 4, 5), result); } public void testLeastOfIterable_simple_n_withNullElement() { List<@Nullable Integer> list = asList(3, 4, 5, null, -1); List<@Nullable Integer> result = Ordering.<Integer>natural().nullsLast().leastOf(list, list.size()); assertTrue(result instanceof RandomAccess); assertListImmutable(result);
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Fri Oct 10 23:13:45 UTC 2025 - 42.8K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/NtlmPasswordAuthentication.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 26.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ListsTest.java
list.set(1, 4); List<Integer> first = iterator.next(); // Changes after are too (unlike Iterables.partition) list.set(2, 5); assertEquals(asList(3, 4, 5), first); // Changes to a sublist also write through to the original list first.set(1, 6); assertEquals(asList(3, 6, 5), list); } public void testPartitionSize_1() {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 35.4K bytes - Viewed (0)