Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for assertArrayEquals (0.32 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;
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Dec 16 10:38:43 GMT 2018
    - 4.8K bytes
    - Viewed (0)
  2. 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());
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  3. 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);
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 2.1K bytes
    - Viewed (0)
  4. 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());
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  5. 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);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 2.1K bytes
    - Viewed (0)
  6. 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_".
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  7. maven-core/src/test/java/org/apache/maven/project/artifact/DefaultProjectArtifactsCacheTest.java

    import org.apache.maven.lifecycle.internal.SetWithResolutionResult;
    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.Test;
    
    import static org.junit.jupiter.api.Assertions.assertArrayEquals;
    
    class DefaultProjectArtifactsCacheTest {
    
        private ProjectArtifactsCache cache;
    
        @BeforeEach
        void setUp() throws Exception {
            cache = new DefaultProjectArtifactsCache();
        }
    
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Dec 15 06:34:19 GMT 2023
    - 2.9K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/util/DocumentUtilTest.java

     * either express or implied. See the License for the specific language
     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.util;
    
    import static org.junit.Assert.assertArrayEquals;
    
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Date;
    import java.util.HashMap;
    import java.util.List;
    import java.util.Map;
    
    import org.codelibs.fess.unit.UnitFessTestCase;
    
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 4K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/hash/AbstractByteHasherTest.java

     * the License.
     */
    
    package com.google.common.hash;
    
    import static com.google.common.base.Charsets.UTF_16LE;
    import static org.junit.Assert.assertArrayEquals;
    import static org.junit.Assert.assertThrows;
    
    import java.io.ByteArrayOutputStream;
    import java.util.Random;
    import junit.framework.TestCase;
    
    /**
     * Tests for AbstractByteHasher.
     *
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 3.8K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/io/ByteSinkTester.java

     */
    
    package com.google.common.io;
    
    import static com.google.common.io.SourceSinkFactory.ByteSinkFactory;
    import static com.google.common.io.SourceSinkFactory.CharSinkFactory;
    import static org.junit.Assert.assertArrayEquals;
    
    import com.google.common.base.Charsets;
    import com.google.common.collect.ImmutableList;
    import java.io.ByteArrayInputStream;
    import java.io.IOException;
    import java.io.OutputStream;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 4K bytes
    - Viewed (0)
Back to top