Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 101 - 110 of 202 for Ints (0.02 seconds)

  1. src/test/java/jcifs/internal/smb1/com/SmbComLockingAndXTest.java

            assertEquals(1, SMBUtil.readInt2(buffer, 10));
        }
    
        /**
         * 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);
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7.1K bytes
    - Click Count (0)
  2. src/test/java/jcifs/internal/smb2/io/Smb2ReadRequestTest.java

            @DisplayName("Should handle various padding values")
            @ValueSource(ints = { 0, 1, 15, 127, 255 })
            void testVariousPadding(int padding) {
                assertDoesNotThrow(() -> request.setPadding((byte) padding));
            }
    
            @ParameterizedTest
            @DisplayName("Should handle various read lengths")
            @ValueSource(ints = { 0, 1, 512, 1024, 4096, 65536, 1048576 })
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 24.8K bytes
    - Click Count (0)
  3. src/test/java/jcifs/ACETest.java

            }
        }
    
        @Nested
        @DisplayName("Constant Validation Tests")
        class ConstantValidationTests {
    
            @ParameterizedTest
            @ValueSource(ints = { ACE.FILE_READ_DATA, ACE.FILE_WRITE_DATA, ACE.FILE_APPEND_DATA, ACE.FILE_READ_EA, ACE.FILE_WRITE_EA,
                    ACE.FILE_EXECUTE, ACE.FILE_DELETE, ACE.FILE_READ_ATTRIBUTES, ACE.FILE_WRITE_ATTRIBUTES, ACE.DELETE, ACE.READ_CONTROL,
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 24.4K bytes
    - Click Count (0)
  4. guava/src/com/google/common/net/InetAddresses.java

    import com.google.common.base.CharMatcher;
    import com.google.common.base.MoreObjects;
    import com.google.common.hash.Hashing;
    import com.google.common.io.ByteStreams;
    import com.google.common.primitives.Ints;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import java.math.BigInteger;
    import java.net.Inet4Address;
    import java.net.Inet6Address;
    import java.net.InetAddress;
    import java.net.NetworkInterface;
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Feb 19 21:24:11 GMT 2025
    - 47.4K bytes
    - Click Count (0)
  5. guava/src/com/google/common/collect/CompactHashMap.java

    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.annotations.VisibleForTesting;
    import com.google.common.base.Preconditions;
    import com.google.common.primitives.Ints;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import com.google.errorprone.annotations.concurrent.LazyInit;
    import com.google.j2objc.annotations.WeakOuter;
    import java.io.IOException;
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Jul 08 18:32:10 GMT 2025
    - 39.6K bytes
    - Click Count (0)
  6. src/test/java/jcifs/internal/smb2/io/Smb2FlushResponseTest.java

                assertEquals("Expected structureSize = 4", exception.getMessage());
            }
    
            @ParameterizedTest
            @ValueSource(ints = { 0, 1, 2, 3, 5, 6, 100, 255, 65535 })
            @DisplayName("Should throw exception for various invalid structure sizes")
            void testReadBytesWireFormatVariousInvalidSizes(int invalidSize) {
                // Given
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 10.3K bytes
    - Click Count (0)
  7. src/test/java/jcifs/internal/smb2/Smb2ConstantsTest.java

            void testDialectAny() {
                assertEquals(0x02FF, Smb2Constants.SMB2_DIALECT_ANY, "SMB dialect ANY must be 0x02FF");
            }
    
            @ParameterizedTest
            @ValueSource(ints = { 0x0202, 0x0210, 0x0300, 0x0302, 0x0311 })
            @DisplayName("All specific dialects should be greater than or equal to SMB 2.0.2")
            void testDialectVersionProgression(int dialect) {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 14.1K bytes
    - Click Count (0)
  8. src/test/java/jcifs/internal/smb1/trans/nt/NtTransNotifyChangeResponseTest.java

            assertEquals(0, info.getAction());
            assertNull(info.getFileName());
        }
    
        @DisplayName("Test readParametersWireFormat with various file actions")
        @ParameterizedTest
        @ValueSource(ints = { FileNotifyInformation.FILE_ACTION_ADDED, FileNotifyInformation.FILE_ACTION_REMOVED,
                FileNotifyInformation.FILE_ACTION_MODIFIED, FileNotifyInformation.FILE_ACTION_RENAMED_OLD_NAME,
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 14.7K bytes
    - Click Count (0)
  9. src/test/java/jcifs/internal/smb2/io/Smb2ReadResponseTest.java

            // Then
            assertEquals(0, bytesWritten);
        }
    
        @DisplayName("Should write zero bytes at various offsets")
        @ParameterizedTest
        @ValueSource(ints = { 0, 1, 10, 50, 100, 255 })
        void testWriteBytesWireFormatAtDifferentOffsets(int offset) {
            // Given
            byte[] buffer = new byte[256];
    
            // When
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 22.1K bytes
    - Click Count (0)
  10. src/test/java/jcifs/internal/smb1/trans/TransCallNamedPipeResponseTest.java

            assertEquals("Payload exceeds buffer size", exception.getMessage());
        }
    
        @ParameterizedTest
        @ValueSource(ints = { 1, 10, 100, 500, 1024 })
        void testReadDataWireFormatWithVariousSizes(int dataSize) throws SMBProtocolDecodingException {
            if (dataSize > outputBuffer.length) {
                return; // Skip sizes larger than buffer
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 8.8K bytes
    - Click Count (0)
Back to Top