- Sort Score
- Result 10 results
- Languages All
Results 771 - 780 of 1,466 for assertEquals (0.09 sec)
-
src/test/java/jcifs/pac/PACDecodingExceptionTest.java
package jcifs.pac; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertSame; import org.junit.jupiter.api.Test; /** * Tests for the PACDecodingException class. */ class PACDecodingExceptionTest { /** * Test the default constructor. */ @Test void testDefaultConstructor() {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbTreeTest.java
assertEquals("TESTSHARE", tree.share); assertEquals("testService", tree.service); assertEquals(0, tree.connectionState); // Test constructor with null service tree = new SmbTree(session, "testShare", null); assertEquals("TESTSHARE", tree.share); assertEquals("?????", tree.service); assertEquals(0, tree.connectionState);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 10.2K bytes - Viewed (0) -
okhttp-tls/src/test/java/okhttp3/tls/CertificatesJavaTest.java
* limitations under the License. */ package okhttp3.tls; import java.security.cert.X509Certificate; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; public class CertificatesJavaTest { @Test public void testRoundtrip() { String certificateString = "" + "-----BEGIN CERTIFICATE-----\n"Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Nov 20 02:23:18 UTC 2020 - 1.8K bytes - Viewed (0) -
src/test/java/jcifs/util/transport/RequestTimeoutExceptionTest.java
Throwable cause = new RuntimeException("Root cause"); RequestTimeoutException exception = new RequestTimeoutException(cause); assertEquals("java.lang.RuntimeException: Root cause", exception.getMessage(), "Message should be derived from the cause"); assertEquals(cause, exception.getCause(), "Cause should match the provided throwable"); } @Test void testMessageAndCauseConstructor() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/dtyp/ACETest.java
testBuffer[19] = 0x00; // Test decode int size = ace.decode(testBuffer, 0, testBuffer.length); // Verify results assertEquals(32, size); assertTrue(ace.isAllow()); assertEquals(0x03, ace.getFlags()); assertEquals(0x001200A9, ace.getAccessMask()); assertNotNull(ace.getSID()); } @Test @DisplayName("Test decode with deny ACE")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/CreateContextResponseTest.java
assertEquals(0, result); assertNotNull(testResponse.getData()); assertEquals(0, testResponse.getData().length); } @Test @DisplayName("Should count decode calls correctly") void testDecodeCallCount() throws SMBProtocolDecodingException { assertEquals(0, testResponse.getDecodeCallCount());Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 16.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/HashMultisetTest.java
multiset.add("foo", 2); multiset.add("bar"); assertEquals(3, multiset.size()); assertEquals(2, multiset.count("foo")); } public void testCreateWithSize() { Multiset<String> multiset = HashMultiset.create(50); multiset.add("foo", 2); multiset.add("bar"); assertEquals(3, multiset.size()); assertEquals(2, multiset.count("foo")); } public void testCreateFromIterable() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 4.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ObjectArraysTest.java
String[] empty = ObjectArrays.newArray(String.class, 0); assertEquals(String[].class, empty.getClass()); assertThat(empty).isEmpty(); } @GwtIncompatible // ObjectArrays.newArray(Class, int) public void testNewArray_fromClass_nonempty() { String[] array = ObjectArrays.newArray(String.class, 2); assertEquals(String[].class, array.getClass()); assertThat(array).hasLength(2);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 8.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/dtyp/SecurityDescriptorTest.java
// decode returns 0 when no DACL is present (falls through) assertEquals(0, size); assertNotNull(securityDescriptor.getOwnerUserSid()); assertNotNull(securityDescriptor.getOwnerGroupSid()); assertEquals(3, securityDescriptor.getOwnerUserSid().sub_authority_count); assertEquals(2, securityDescriptor.getOwnerGroupSid().sub_authority_count); } @TestRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.6K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NodeStatusResponseTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 19.3K bytes - Viewed (0)