Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 1,918 for ints (0.08 sec)

  1. src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeResponseTest.java

        }
    
        @ParameterizedTest
        @ValueSource(ints = { 0, 1, 10, 100, 500, 1024 })
        void testReadDataWireFormatVariousSizes(int dataSize) throws SMBProtocolDecodingException {
            // Test with various data sizes within buffer limit
            byte[] testData = new byte[dataSize];
            Arrays.fill(testData, (byte) 0xAB);
            byte[] buffer = new byte[dataSize + 100];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/WinErrorTest.java

        @MethodSource("knownCodeMessagePairs")
        void lookup_returns_expected_message_for_known_codes(int code, String expectedMessage) {
            // Valid inputs: each known code must map to its documented message
            assertEquals(expectedMessage, lookupMessage(code).orElse(null));
        }
    
        @ParameterizedTest
        @ValueSource(ints = { -1, Integer.MIN_VALUE, Integer.MAX_VALUE })
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/ntlmssp/NtlmMessageTest.java

            assertEquals(0, msg.getFlags(), "Initial flags should be 0");
        }
    
        @ParameterizedTest(name = "setFlags({0}) ➜ getFlags() == {0}")
        @ValueSource(ints = { 0x0, 0x1, 0x2, 0xFFFFFFFF, -123456 })
        void testSetAndGetFlags(int value) {
            msg.setFlags(value);
            assertEquals(value, msg.getFlags(), "getFlags should return the value set");
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/SmbExceptionTest.java

         * - Positive values not in DOS_ERROR_CODES map to NT_STATUS_UNSUCCESSFUL
         */
        @ParameterizedTest
        @ValueSource(ints = { 0, 1, 123, -7 })
        void testGetNtStatusVariousCodes(int errcode) {
            SmbException ex = new SmbException(errcode, false);
            int expected;
            if (errcode == 0) {
                expected = 0;
            } else if ((errcode & 0xC0000000) != 0) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/com/SmbComLockingAndXTest.java

        }
    
        /**
         * Test that a large file lock (bit 0x10 set) is encoded and decoded correctly.
         */
        @ParameterizedTest
        @ValueSource(ints = { 0x10, 0x11 })
        void largeFileFlagSet_and_decoded_according_to_type(int type) throws Exception {
            Configuration cfg = mock(Configuration.class);
            SmbComLockingAndX cmd = new SmbComLockingAndX(cfg);
            setField(cmd, "fid", 1);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

      @SuppressWarnings("JdkObsolete")
      private static Enumeration<Integer> enumerate(int... ints) {
        Vector<Integer> vector = new Vector<>(Ints.asList(ints));
        return vector.elements();
      }
    
      public void testToString() {
        Iterator<String> iterator = Lists.newArrayList("yam", "bam", "jam", "ham").iterator();
        assertEquals("[yam, bam, jam, ham]", Iterators.toString(iterator));
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 54.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/NetbiosNameTest.java

            // Given
            int testType = 0x20; // Server service
            when(mockNetbiosName.getNameType()).thenReturn(testType);
    
            // When
            int nameType = mockNetbiosName.getNameType();
    
            // Then
            assertEquals(testType, nameType);
            verify(mockNetbiosName).getNameType();
        }
    
        @ParameterizedTest
        @ValueSource(ints = { 0x00, 0x03, 0x06, 0x1B, 0x1C, 0x1D, 0x1E, 0x20 })
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/dcerpc/ndr/NdrShortTest.java

        class ConstructorTests {
    
            @ParameterizedTest
            @DisplayName("Should mask input values with 0xFF correctly")
            @ValueSource(ints = { 0, 1, 127, 128, 255, 256, -1, -128, -255, -256, 32767, -32768, 65535, 65536 })
            void testConstructorMasking(int inputValue) {
                // Given: An input value
                // When: Creating NdrShort with that value
                NdrShort ndrShort = new NdrShort(inputValue);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/BufferCacheImplTest.java

        }
    
        // Parameterized: exercise small variations of cache size for a simple reuse cycle
        @ParameterizedTest
        @ValueSource(ints = { 1, 2 })
        @DisplayName("Parameterized: buffer reuse works for various small cache sizes")
        void reuseWorksForVariousCacheSizes(int cacheSize) {
            BufferCacheImpl impl = new BufferCacheImpl(cacheSize, 6);
            byte[] toRelease = new byte[5];
            toRelease[0] = 42;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/hash/HashingTest.java

        int last = 0;
        for (int shards = 2; shards <= MAX_SHARDS; shards++) {
          int chosen = Hashing.consistentHash(h, shards);
          if (chosen != last) {
            map.incrementAndGet(shards);
            last = chosen;
          }
        }
      }
    
      private static final int ITERS = 10000;
      private static final int MAX_SHARDS = 500;
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 26.4K bytes
    - Viewed (0)
Back to top