Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for assertArrayEquals (0.17 sec)

  1. 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
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  2. 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);
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 11.4K bytes
    - Viewed (0)
  3. android/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());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.9K bytes
    - Viewed (0)
  4. 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());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.9K bytes
    - Viewed (0)
  5. src/test/java/jcifs/tests/ReadWriteTest.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.tests;
    
    
    import static org.junit.Assert.assertArrayEquals;
    import static org.junit.Assert.assertEquals;
    import static org.junit.Assert.fail;
    
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.net.MalformedURLException;
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 13.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/tests/EnumTest.java

                    String[] names = f.list();
                    assertNotNull(names);
                    assertEquals(3, names.length);
                    Arrays.sort(names);
                    Assert.assertArrayEquals(new String[] {
                        "a", "b", "c"
                    }, names);
    
                    SmbFile[] files = f.listFiles();
                    assertNotNull(files);
                    assertEquals(3, files.length);
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:09:03 GMT 2023
    - 25.5K bytes
    - Viewed (0)
Back to top