Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for assertArrayEquals (0.18 sec)

  1. src/test/java/jcifs/tests/NtlmTest.java

            t2.setTargetInformation(ti);
    
            Type2Message parsed = new Type2Message(t2.toByteArray());
            assertArrayEquals(challenge, parsed.getChallenge());
            assertNull(parsed.getTarget());
            assertArrayEquals(ti, parsed.getTargetInformation());
        }
    
    
        @Test
        public void testParsingType3 () throws IOException {
    
            int flags = 0;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Dec 16 10:38:43 UTC 2018
    - 4.8K bytes
    - Viewed (0)
  2. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/collection/ArrayUtilTest.java

         * @throws Exception
         */
        @Test
        public void testAsArray() throws Exception {
            assertArrayEquals(new int[] { 1, 2 }, ArrayUtil.asIntArray(1, 2));
            assertArrayEquals(new Object[] { "a", 2 }, ArrayUtil.asArray("a", 2));
            assertArrayEquals(new String[] { "a", "b" }, ArrayUtil.asArray("a", "b"));
            assertArrayEquals(new Integer[] { 1, 2 }, ArrayUtil.asArray(1, 2));
        }
    
        /**
         * @throws Exception
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/CipherSuiteTest.kt

    import assertk.assertions.isNotEqualTo
    import assertk.assertions.isSameAs
    import okhttp3.CipherSuite.Companion.forJavaName
    import okhttp3.internal.applyConnectionSpec
    import org.junit.jupiter.api.Assertions.assertArrayEquals
    import org.junit.jupiter.api.Test
    
    class CipherSuiteTest {
      @Test
      fun hashCode_usesIdentityHashCode_legacyCase() {
        val cs = CipherSuite.TLS_RSA_EXPORT_WITH_RC4_40_MD5 // This one's javaName starts with "SSL_".
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/io/ByteSourceTest.java

        ByteSource b3 = ByteSource.wrap(new byte[] {4, 5});
    
        byte[] expected = {0, 1, 2, 3, 4, 5};
    
        assertArrayEquals(expected, ByteSource.concat(ImmutableList.of(b1, b2, b3)).read());
        assertArrayEquals(expected, ByteSource.concat(b1, b2, b3).read());
        assertArrayEquals(expected, ByteSource.concat(ImmutableList.of(b1, b2, b3).iterator()).read());
        assertEquals(expected.length, ByteSource.concat(b1, b2, b3).size());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/tests/RandomAccessFileTest.java

                    byte[] buf = new byte[4];
    
                    raf.readFully(buf);
                    assertArrayEquals(new byte[] {
                        0x1, 0x2, 0x3, 0x4
                    }, buf);
                    assertEquals(4, raf.getFilePointer());
    
                    raf.readFully(buf);
                    assertArrayEquals(new byte[] {
                        0x5, 0x6, 0x7, 0x8
                    }, buf);
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 11.4K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/sso/oic/OpenIdConnectAuthenticatorTest.java

            final String[] groups = DocumentUtil.getValue(attributes, "groups", String[].class);
            assertArrayEquals(new String[] { "group1", "group2" }, groups);
    
            OpenIdConnectCredential credential = new OpenIdConnectCredential(attributes);
            assertEquals("******@****.***", credential.getUserId());
            assertArrayEquals(new String[] { "group1", "group2" }, credential.getUserGroups());
        }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 2K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/io/ByteSinkTest.java

        out.close();
    
        assertTrue(sink.wasStreamClosed());
        assertArrayEquals(new byte[] {1, 2, 3, 4}, sink.getBytes());
      }
    
      public void testWrite_bytes() throws IOException {
        assertArrayEquals(new byte[0], sink.getBytes());
        sink.write(bytes);
    
        assertTrue(sink.wasStreamOpened() && sink.wasStreamClosed());
        assertArrayEquals(bytes, sink.getBytes());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/io/ByteSinkTest.java

        out.close();
    
        assertTrue(sink.wasStreamClosed());
        assertArrayEquals(new byte[] {1, 2, 3, 4}, sink.getBytes());
      }
    
      public void testWrite_bytes() throws IOException {
        assertArrayEquals(new byte[0], sink.getBytes());
        sink.write(bytes);
    
        assertTrue(sink.wasStreamOpened() && sink.wasStreamClosed());
        assertArrayEquals(bytes, sink.getBytes());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  10. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 2.2K bytes
    - Viewed (0)
Back to top