- Sort Score
- Result 10 results
- Languages All
Results 1031 - 1040 of 1,466 for assertEquals (0.07 sec)
-
android/guava-tests/test/com/google/common/util/concurrent/ExecutionListTest.java
@Override public void run() { runCalled.getAndIncrement(); } }, directExecutor()); list.execute(); assertEquals(1, runCalled.get()); list.execute(); assertEquals(1, runCalled.get()); } public void testExecute_idempotentConcurrently() throws InterruptedException { CountDownLatch okayToRun = new CountDownLatch(1);Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri Jul 11 18:52:30 UTC 2025 - 4.7K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/MsrpcSamrConnect2Test.java
// When MsrpcSamrConnect2 msrpcSamrConnect2 = new MsrpcSamrConnect2(testServer, testAccess, mockPolicyHandle); // Then - Test public methods assertEquals(0, msrpcSamrConnect2.getPtype(), "getPtype() should return 0"); assertEquals(DcerpcConstants.DCERPC_FIRST_FRAG | DcerpcConstants.DCERPC_LAST_FRAG, msrpcSamrConnect2.getFlags(), "getFlags() should return correct flags");Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/ndr/NdrExceptionTest.java
package jcifs.dcerpc.ndr; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; import org.junit.jupiter.api.Test; class NdrExceptionTest { /** * Test the constructor with a message. * Ensures that the exception is created with the correct message. */ @Test void testConstructorWithMessage() {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 1.5K bytes - Viewed (0) -
compat/maven-compat/src/test/java/org/apache/maven/artifact/resolver/filter/OrArtifactFilterTest.java
* under the License. */ package org.apache.maven.artifact.resolver.filter; import java.util.Arrays; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; /** * Tests {@link OrArtifactFilter}. * */ @DeprecatedRegistered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 1.7K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CertificatePinnerTest.kt
CertificatePinner.Pin( "**.example.co.uk", "sha256/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=", ) assertEquals( "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=".decodeBase64(), pin.hash, ) assertEquals("sha256", pin.hashAlgorithm) assertEquals("**.example.co.uk", pin.pattern) Assertions.assertTrue(pin.matchesHostname("www.example.co.uk"))
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 10.1K bytes - Viewed (0) -
src/test/java/jcifs/context/CIFSContextCredentialWrapperTest.java
// We can directly test getCredentials() to ensure it returns the initial credentials. assertEquals(mockCredentials, wrapper.getCredentials(), "Initial credentials should be set by constructor"); } @Test @DisplayName("Should return the credentials provided in the constructor") void testGetCredentials() { assertEquals(mockCredentials, wrapper.getCredentials(), "getCredentials should return the initially set credentials");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.4K bytes - Viewed (0) -
src/test/java/jcifs/tests/persistent/HandleReconnectorTest.java
public void testGetMaxRetries() { assertEquals(2, reconnector.getMaxRetries()); } @Test public void testGetRetryDelay() { assertEquals(50, reconnector.getRetryDelay()); } @Test public void testDefaultConstructor() { HandleReconnector defaultReconnector = new HandleReconnector(mockManager); assertEquals(3, defaultReconnector.getMaxRetries());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 5.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/ClassPathTest.java
assertEquals("Foo", new ClassInfo(FILE, "Foo.class", classLoader).getSimpleName()); assertEquals("Foo", new ClassInfo(FILE, "a/b/Foo.class", classLoader).getSimpleName()); assertEquals("Foo", new ClassInfo(FILE, "a/b/Bar$Foo.class", classLoader).getSimpleName()); assertEquals("", new ClassInfo(FILE, "a/b/Bar$1.class", classLoader).getSimpleName());Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 20:58:01 UTC 2025 - 23K bytes - Viewed (0) -
src/test/java/jcifs/smb/ShareEnumIteratorTest.java
SmbResource r1 = it.next(); assertNotNull(r1); assertEquals("foo/", r1.getName(), "First child name should match with trailing slash"); assertTrue(it.hasNext(), "Expected second element available"); SmbResource r2 = it.next(); assertNotNull(r2); assertEquals("bar/", r2.getName(), "Second child name should match with trailing slash");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.1K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http/CancelTest.kt
val buffer = ByteArray(1024) assertFailsWith<IOException> { while (responseBody.read(buffer) != -1) { } }.also { expected -> assertEquals(cancelMode == INTERRUPT, Thread.interrupted()) } responseBody.close() assertEquals(if (connectionType == H2) 1 else 0, client.connectionPool.connectionCount()) } @ParameterizedTest @ArgumentsSource(CancelModelParamProvider::class)
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 9.8K bytes - Viewed (0)