- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 125 for repeats (0.03 sec)
-
guava-tests/test/com/google/common/hash/BloomFilterTest.java
assertThat(BloomFilter.optimalNumOfBits(n, fpp)).isAtLeast(0); } } // some random values Random random = new Random(0); for (int repeats = 0; repeats < 10000; repeats++) { assertThat(BloomFilter.optimalNumOfBits(random.nextInt(1 << 16), random.nextDouble())) .isAtLeast(0); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 18:19:59 UTC 2025 - 22.1K bytes - Viewed (0) -
src/test/java/jcifs/util/InputValidatorTest.java
} @Test @DisplayName("Test username length validation") void testUsernameLengthValidation() { String longUsername = "a".repeat(InputValidator.MAX_USERNAME_LENGTH + 1); assertThrows(IllegalArgumentException.class, () -> InputValidator.validateUsername(longUsername)); } @ParameterizedTest @DisplayName("Test valid domains")Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 11.9K bytes - Viewed (0) -
src/test/java/jcifs/spnego/NegTokenInitTest.java
assertFalse(init.getContextFlag(NegTokenInit.CONFIDENTIALITY)); assertEquals(NegTokenInit.INTEGRITY, init.getContextFlags()); } @Test @DisplayName("Parse rejects wrong SPNEGO OID") void testParseRejectsWrongOid() throws Exception { byte[] token = buildInitToken(new ASN1ObjectIdentifier[] { OID_KRB }, 0, null, null, false, "1.2.840.113554.1.2.2", // Kerberos OID instead of SPNEGO OID
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 21K bytes - Viewed (0) -
src/test/java/jcifs/util/ServerResponseValidatorTest.java
// Should pass without exception } @Test public void testStringTooLong() throws Exception { String longString = "a".repeat(300); assertThrows(SmbException.class, () -> { validator.validateString(longString, 255, "test"); }); } @Test public void testStringWithNullBytes() throws Exception {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 14.2K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketHttpTest.kt
fun closeReasonMaximumLength() { webServer.enqueue( MockResponse .Builder() .webSocketUpgrade(serverListener) .build(), ) val clientReason = repeat('C', 123) val serverReason = repeat('S', 123) val webSocket: WebSocket = newWebSocket() val server = serverListener.assertOpen() clientListener.assertOpen() webSocket.close(1000, clientReason)
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Tue Nov 04 19:13:52 UTC 2025 - 35.5K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/RealWebSocketTest.kt
import kotlin.test.assertFailsWith import okhttp3.FailingCall import okhttp3.Headers import okhttp3.Headers.Companion.headersOf import okhttp3.Protocol import okhttp3.Request import okhttp3.Response import okhttp3.TestUtil.repeat import okhttp3.internal.concurrent.TaskFaker import okhttp3.internal.connection.BufferedSocket import okhttp3.internal.ws.WebSocketExtensions.Companion.parse import okio.BufferedSink import okio.BufferedSource
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 18.7K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/TrailersTest.kt
peekTrailers(Protocol.HTTP_1_1) } @Test fun peekTrailersHttp2() { peekTrailers(Protocol.HTTP_2) } private fun peekTrailers(protocol: Protocol) { val responseBody = "a".repeat(OKHTTP_CLIENT_WINDOW_SIZE) enableProtocol(protocol) server.enqueue( MockResponse .Builder() .addHeader("h1", "v1") .trailers(headersOf("t1", "v2"))
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Sat Nov 08 21:45:04 UTC 2025 - 18.8K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java
* * @author Louis Wasserman */ @GwtCompatible @Ignore("test runners must not instantiate and run this directly, only via suites we build") // @Ignore affects the Android test runner, which respects JUnit 4 annotations on JUnit 3 tests. @SuppressWarnings("JUnit4ClassUsedInJUnit3") public class MultisetNavigationTester<E> extends AbstractMultisetTester<E> { private SortedMultiset<E> sortedMultiset;Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 20:14:36 UTC 2024 - 26K bytes - Viewed (0) -
okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsOverHttpsTest.kt
val cache = Cache(cacheFs, "cache".toPath(), (100 * 1024).toLong()) val cachedClient = bootstrapClient.newBuilder().cache(cache).build() val cachedDns = buildLocalhost(cachedClient, false) repeat(2) { server.enqueue( dnsResponse( "0000818000010003000000000567726170680866616365626f6f6b03636f6d0000010001c00c000500010" +
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Tue Nov 04 19:13:52 UTC 2025 - 11.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComRenameTest.java
@DisplayName("Test writeBytesWireFormat with very long file names") public void testWriteBytesWireFormatLongFileNames() { // Given String longOldFileName = "a".repeat(255); // Max filename length String longNewFileName = "b".repeat(255); byte[] dst = new byte[1024]; smbComRename = new SmbComRename(config, longOldFileName, longNewFileName); int dstIndex = 0; // WhenRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K bytes - Viewed (0)