Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 165 for assertArrayEquals (0.08 sec)

  1. src/test/java/jcifs/smb1/smb1/NetServerEnum2Test.java

    package jcifs.smb1.smb1;
    
    import static org.junit.jupiter.api.Assertions.assertArrayEquals;
    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertTrue;
    
    import java.io.UnsupportedEncodingException;
    import java.nio.charset.StandardCharsets;
    
    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.Test;
    
    /**
     * Unit tests for the NetServerEnum2 class.
     */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorSecurityTest.java

     * License along with this library; if not, write to the Free Software
     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     */
    package jcifs.smb;
    
    import static org.junit.jupiter.api.Assertions.assertArrayEquals;
    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertNotEquals;
    import static org.junit.jupiter.api.Assertions.assertNotNull;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/util/SecureCredentialStorageTest.java

            char[] decrypted1 = storage.decryptCredentials(encrypted1);
            char[] decrypted2 = storage.decryptCredentials(encrypted2);
    
            assertArrayEquals(plaintext, decrypted1);
            assertArrayEquals(plaintext, decrypted2);
    
            // Clean up
            Arrays.fill(plaintext, '\0');
            Arrays.fill(decrypted1, '\0');
            Arrays.fill(decrypted2, '\0');
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/spnego/SpnegoTokenTest.java

    package jcifs.spnego;
    
    import static org.junit.jupiter.api.Assertions.assertArrayEquals;
    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 static org.junit.jupiter.api.Assertions.assertThrows;
    import static org.junit.jupiter.api.Assertions.assertTrue;
    
    import java.io.IOException;
    
    import org.junit.jupiter.api.DisplayName;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/com/SmbComSessionSetupAndXTest.java

            assertEquals("DOM", primaryDomain);
    
            byte[] lm = (byte[]) getField(obj, "lmHash");
            byte[] nt = (byte[]) getField(obj, "ntHash");
            assertArrayEquals(new byte[0], lm);
            assertArrayEquals(new byte[0], nt);
        }
    
        @Test
        void unsupportedCredentialType() {
            assertThrows(SmbException.class, () -> new SmbComSessionSetupAndX(mockContext, mockNegotiate, mockAndX, "foo"));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/ntlmssp/av/AvTimestampTest.java

    package jcifs.ntlmssp.av;
    
    import static org.junit.jupiter.api.Assertions.assertArrayEquals;
    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertNotNull;
    
    import org.junit.jupiter.api.Test;
    
    import jcifs.internal.util.SMBUtil;
    
    public class AvTimestampTest {
    
        /**
         * Test constructor with raw bytes.
         */
        @Test
        public void testConstructorWithRawBytes() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/dcerpc/UUIDTest.java

    package jcifs.dcerpc;
    
    import static org.junit.jupiter.api.Assertions.assertArrayEquals;
    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertNotNull;
    import static org.junit.jupiter.api.Assertions.assertThrows;
    
    import org.junit.jupiter.api.DisplayName;
    import org.junit.jupiter.api.Nested;
    import org.junit.jupiter.api.Test;
    import org.junit.jupiter.api.extension.ExtendWith;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/testers/ListToArrayTester.java

      public void testToArray_noArg() {
        Object[] actual = getList().toArray();
        assertArrayEquals("toArray() order should match list", createOrderedArray(), actual);
      }
    
      @CollectionSize.Require(absent = ZERO)
      public void testToArray_tooSmall() {
        Object[] actual = getList().toArray(new Object[0]);
        assertArrayEquals("toArray(tooSmall) order should match list", createOrderedArray(), actual);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/io/Smb2FlushRequestTest.java

    package jcifs.internal.smb2.io;
    
    import static org.junit.jupiter.api.Assertions.assertArrayEquals;
    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertNotNull;
    import static org.junit.jupiter.api.Assertions.assertThrows;
    import static org.junit.jupiter.api.Assertions.assertTrue;
    import static org.mockito.Mockito.mock;
    import static org.mockito.Mockito.when;
    
    import java.lang.reflect.Field;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/ntlmssp/av/AvPairTest.java

    package jcifs.ntlmssp.av;
    
    import static org.junit.jupiter.api.Assertions.assertArrayEquals;
    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertNull;
    
    import org.junit.jupiter.api.Test;
    
    class AvPairTest {
    
        @Test
        void testConstructorAndGetters() {
            // Test with a valid type and raw data
            int type = AvPair.MsvAvTimestamp;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3K bytes
    - Viewed (0)
Back to top