Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 1,599 for ints (2.16 sec)

  1. src/test/java/jcifs/internal/smb2/info/Smb2SetInfoRequestTest.java

            // Test size calculation
            int size = request.size();
            int expectedRawSize = Smb2Constants.SMB2_HEADER_LENGTH + 32 + 64;
            int expectedSize = (expectedRawSize + 7) & ~7;
            assertEquals(expectedSize, size);
    
            // Test wire format writing
            byte[] buffer = new byte[512];
            int bytesWritten = request.writeBytesWireFormat(buffer, 64);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/Smb2TransformHeaderTest.java

        }
    
        // Duplicate testFlags method removed - keeping the first one
    
        @ParameterizedTest
        @ValueSource(ints = { 0, 1, 64, 1024, 4096, 65536 })
        @DisplayName("Should handle various message sizes")
        void testVariousMessageSizes(int messageSize) {
            // When
            transformHeader.setOriginalMessageSize(messageSize);
    
            // Then
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/util/HexdumpTest.java

            // High bytes should be dots
            assertTrue(output.contains("..."));
        }
    
        @ParameterizedTest
        @ValueSource(ints = { 1, 15, 16, 17, 31, 32, 33, 64, 128 })
        @DisplayName("Should handle various data sizes in hexdump")
        void testHexdumpVariousSizes(int size) {
            ByteArrayOutputStream baos = new ByteArrayOutputStream();
            PrintStream ps = new PrintStream(baos);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectRequestTest.java

            Smb2TreeDisconnectRequest req2 = new Smb2TreeDisconnectRequest(mockConfig);
    
            // Then - all should have same command
            int cmd1 = (int) commandField.get(req1);
            int cmd2 = (int) commandField.get(req2);
    
            assertEquals(cmd1, cmd2);
            assertEquals(SMB2_TREE_DISCONNECT, cmd1);
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/FileNotifyInformationTest.java

            }
        }
    
        // Helper methods
        private boolean isPowerOfTwo(int n) {
            return n > 0 && (n & (n - 1)) == 0;
        }
    
        private FileNotifyInformation createImplementation(final int action, final String fileName) {
            return new FileNotifyInformation() {
                @Override
                public int getAction() {
                    return action;
                }
    
                @Override
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyResponseTest.java

            // Given - large buffer with many notifications
            byte[] buffer = new byte[65536];
            int offset = 0;
    
            setHeaderStart(response, 64);
    
            // Calculate space for notifications
            int notificationSize = 32; // Each notification
            int notificationCount = 100;
            int totalSize = notificationSize * notificationCount;
    
            // Write structure
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/util/MD4.java

        }
    
        // The basic MD4 atomic functions.
    
        private int FF(final int a, final int b, final int c, final int d, final int x, final int s) {
            final int t = a + (b & c | ~b & d) + x;
            return t << s | t >>> 32 - s;
        }
    
        private int GG(final int a, final int b, final int c, final int d, final int x, final int s) {
            final int t = a + (b & (c | d) | c & d) + x + 0x5A827999;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/create/CreateContextResponseTest.java

            private byte[] data;
            private int decodeCallCount = 0;
            private boolean throwOnDecode = false;
    
            public TestCreateContextResponse(byte[] name) {
                this.name = name;
            }
    
            @Override
            public byte[] getName() {
                return name;
            }
    
            @Override
            public int decode(byte[] buffer, int bufferIndex, int len) throws SMBProtocolDecodingException {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 16.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/create/Smb2CloseRequestTest.java

            byte[] buffer = new byte[256];
            int result = request.readBytesWireFormat(buffer, 0);
    
            assertEquals(0, result);
        }
    
        @ParameterizedTest
        @ValueSource(ints = { 0, 10, 50, 100 })
        @DisplayName("writeBytesWireFormat should work at different offsets")
        void testWriteBytesWireFormatAtDifferentOffsets(int offset) {
            byte[] buffer = new byte[512];
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/dtyp/ACETest.java

            testBuffer[offset + 9] = 0x01; // Sub-authority count
            for (int i = 0; i < 6; i++) {
                testBuffer[offset + 10 + i] = 0x00;
            }
            testBuffer[offset + 15] = 0x01;
            for (int i = 0; i < 4; i++) {
                testBuffer[offset + 16 + i] = 0x00;
            }
    
            // Test decode with offset
            int size = ace.decode(testBuffer, offset, testBuffer.length - offset);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.6K bytes
    - Viewed (0)
Back to top