Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 1,279 for array2 (0.03 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/google/AbstractMultimapTester.java

      }
    
      /**
       * @return an array of the proper size with {@code null} as the key of the middle element.
       */
      protected Entry<K, V>[] createArrayWithNullKey() {
        Entry<K, V>[] array = createSamplesArray();
        int nullKeyLocation = getNullLocation();
        Entry<K, V> oldEntry = array[nullKeyLocation];
        array[nullKeyLocation] = mapEntry(null, oldEntry.getValue());
        return array;
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/nego/NegotiateContextResponseTest.java

            @Test
            @DisplayName("Should handle maximum size arrays")
            void testMaximumSizeArrays() throws SMBProtocolDecodingException {
                // Arrange
                int[] largeHashAlgos = new int[100];
                Arrays.fill(largeHashAlgos, PreauthIntegrityNegotiateContext.HASH_ALGO_SHA512);
                byte[] largeSalt = new byte[1024];
                Arrays.fill(largeSalt, (byte) 0xAB);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/create/CreateContextResponseTest.java

                byte[] buffer1 = new byte[100];
                byte[] buffer2 = new byte[200];
    
                Arrays.fill(buffer1, (byte) 0x11);
                Arrays.fill(buffer2, (byte) 0x22);
    
                // First decode
                response.decode(buffer1, 0, 50);
                byte[] data1 = response.getData();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 16.2K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ArrayTable.java

        // In GWT array access never throws IndexOutOfBoundsException.
        checkElementIndex(rowIndex, rowList.size());
        checkElementIndex(columnIndex, columnList.size());
        V oldValue = array[rowIndex][columnIndex];
        array[rowIndex][columnIndex] = value;
        return oldValue;
      }
    
      /**
       * Returns a two-dimensional array with the table contents. The row and column indices correspond
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 13 19:39:21 UTC 2025
    - 26.8K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/ImmutableListTest.java

      }
    
      public void testCreation_arrayOfArray() {
        String[] array = new String[] {"a"};
        List<String[]> list = ImmutableList.<String[]>of(array);
        assertEquals(singletonList(array), list);
      }
    
      public void testCopyOf_emptyArray() {
        String[] array = new String[0];
        List<String> list = ImmutableList.copyOf(array);
        assertEquals(emptyList(), list);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 24.2K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/dict/mapping/CharMappingItemTest.java

            // Initially not deleted
            assertFalse(item.isDeleted());
    
            // Set newInputs to empty array and newOutput
            item.setNewInputs(new String[] {});
            item.setNewOutput("output");
            assertTrue(item.isDeleted());
    
            // Set newInputs to non-empty array - not deleted
            item.setNewInputs(new String[] { "something" });
            assertFalse(item.isDeleted());
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/util/HexdumpTest.java

            assertEquals("00FF7F80", result);
        }
    
        @Test
        @DisplayName("Should handle large byte arrays efficiently")
        void testLargeByteArray() {
            // Create a larger test array
            byte[] data = createTestData(1024);
    
            // Test full array conversion
            String result = Hexdump.toHexString(data);
            assertEquals(2048, result.length()); // 1024 bytes * 2 chars
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/SmbNegotiationTest.java

            assertArrayEquals(new byte[] { 0x05, 0x06, 0x07, 0x08 }, responseBuffer);
        }
    
        @Test
        @DisplayName("Test with empty buffers")
        void testWithEmptyBuffers() {
            // Test with empty byte arrays
            byte[] emptyRequestBuffer = new byte[0];
            byte[] emptyResponseBuffer = new byte[0];
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/smb1/WinErrorTest.java

    import org.junit.jupiter.api.Nested;
    import org.junit.jupiter.api.Test;
    import org.mockito.Mockito;
    
    /**
     * Tests for {@link WinError} interface constants and static arrays.
     * The interface has no instance methods, so the tests focus on
     * value correctness and array integrity.  A tiny Mockito example
     * demonstrates that the interface can be mocked if another class
     * depends on it.
     */
    public class WinErrorTest {
    
        @Nested
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/ioctl/SrvRequestResumeKeyResponseTest.java

            byte[] buffer2 = new byte[28];
            Arrays.fill(buffer2, 0, 24, (byte) 0x22);
    
            int bytesConsumed2 = response.decode(buffer2, 0, 28);
            assertEquals(28, bytesConsumed2);
    
            byte[] resumeKey2 = response.getResumeKey();
            assertNotNull(resumeKey2);
            assertEquals((byte) 0x22, resumeKey2[0]);
    
            // Verify it's a different array
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
Back to top