- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 91 for 02 (0.03 sec)
-
guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java
assertThat(limiter.acquire()) .isWithin(EPSILON) .of(0.0); // R0.00, ...which is granted immediately assertThat(limiter.acquire()).isWithin(EPSILON).of(0.2); // R0.20 assertEvents("R0.00", "U0.20", "R0.00", "R0.20"); } public void testSimpleAcquireEarliestAvailableIsInPast() { RateLimiter limiter = RateLimiter.create(5.0, stopwatch);
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 18:19:59 UTC 2025 - 21.9K bytes - Viewed (0) -
okhttp-sse/src/main/kotlin/okhttp3/sse/internal/ServerSentEventReader.kt
@Throws(IOException::class) fun processNextEvent(): Boolean { var id = lastId var type: String? = null val data = Buffer() while (true) { when (source.select(options)) { in 0..2 -> { completeEvent(id, type, data) return true } in 3..4 -> { source.readData(data) } in 5..7 -> {
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Oct 03 07:51:20 UTC 2025 - 4.3K bytes - Viewed (0) -
src/test/java/jcifs/smb1/ntlmssp/NtlmMessageTest.java
} @Test @DisplayName("writeUShort handles negative values as unsigned") void testWriteUShortNegative() { byte[] dest = new byte[2]; NtlmMessage.writeUShort(dest, 0, -2); assertArrayEquals(new byte[] { -2, -1 }, dest, "Negative short should be encoded unsigned"); } @Test @DisplayName("writeSecurityBuffer writes zero length buffer unchanged")Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/RangeTest.java
assertThat(expected).hasMessageThat().contains("connected"); expected = assertThrows(IllegalArgumentException.class, () -> range.intersection(Range.closed(0, 2))); assertThat(expected).hasMessageThat().contains("connected"); } public void testIntersection_deFactoEmpty() { { Range<Integer> range = Range.open(3, 4);
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 24.2K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbRandomAccessFile.java
Encdec.enc_uint16be((short) v, this.tmp, 0); write(this.tmp, 0, 2); } @Override public final void writeChar(final int v) throws SmbException { Encdec.enc_uint16be((short) v, this.tmp, 0); write(this.tmp, 0, 2); } @Override public final void writeInt(final int v) throws SmbException {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 18.8K bytes - Viewed (0) -
src/test/java/jcifs/util/transport/TransportTest.java
void shouldReturnZeroWhenStreamEmpty() throws IOException { InputStream is = new ByteArrayInputStream("Hi".getBytes()); byte[] buffer = new byte[10]; Transport.readn(is, buffer, 0, 2); // Read all int bytesRead = Transport.readn(is, buffer, 0, 5); // Try to read more assertEquals(0, bytesRead); } } @Nested @DisplayName("Resource management tests")
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/ImmutableLongArrayTest.java
assertThat(iia1.subArray(1, 1)).isSameInstanceAs(ImmutableLongArray.of()); assertThat(iia1.subArray(0, 1).asList()).containsExactly(5L); assertThat(iia3.subArray(0, 2).asList()).containsExactly(5L, 25L).inOrder(); assertThat(iia3.subArray(1, 3).asList()).containsExactly(25L, 125L).inOrder(); assertThrows(IndexOutOfBoundsException.class, () -> iia3.subArray(-1, 1));
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 20.5K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/testing/EqualsTesterTest.java
reference = new ValidTestObject(1, 2); equalsTester = new EqualsTester(); equalObject1 = new ValidTestObject(1, 2); equalObject2 = new ValidTestObject(1, 2); notEqualObject1 = new ValidTestObject(0, 2); } /** Test null reference yields error */ public void testAddNullReference() { assertThrows(NullPointerException.class, () -> equalsTester.addEqualityGroup((Object) null)); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed May 14 19:40:47 UTC 2025 - 13.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/EncryptionNegotiateContextTest.java
SMBUtil.writeInt2(0, buffer, 0); EncryptionNegotiateContext context = new EncryptionNegotiateContext(); int bytesRead = context.decode(buffer, 0, 2); assertEquals(2, bytesRead); assertNotNull(context.getCiphers()); assertEquals(0, context.getCiphers().length); } @Test
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/dtyp/SecurityDescriptorTest.java
@Test @DisplayName("Test decode with DACL containing ACEs") void testDecodeWithDACL() throws SMBProtocolDecodingException { // Prepare buffer with DACL prepareSecurityDescriptorBufferWithDACL(testBuffer, 0, 2); int size = securityDescriptor.decode(testBuffer, 0, testBuffer.length); assertTrue(size > 0); assertNotNull(securityDescriptor.getAces());Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.6K bytes - Viewed (0)