Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 120 for 012345 (0.57 sec)

  1. src/test/java/jcifs/smb1/smb1/AndXServerMessageBlockTest.java

            DummyPlainSMB next = new DummyPlainSMB();
            DummyAndXBlock block = new DummyAndXBlock(next);
            block.customBatchLimit = 2; // batchLevel (0) < limit (2) so chaining allowed
            block.uid = 0x1234;
            block.useUnicode = true;
    
            byte[] buf = new byte[256];
            int n = block.writeAndXWireFormat(buf, 0);
    
            assertTrue(n > 0);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/rdma/RdmaIntegrationTest.java

            RdmaProvider provider = RdmaProviderFactory.selectBestProvider();
    
            // Use localhost for testing - should work with TCP fallback
            InetSocketAddress address = new InetSocketAddress("localhost", 12345);
    
            try (RdmaConnection connection = provider.createConnection(address, null)) {
                assertNotNull(connection, "Connection should not be null");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 13.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/SmbResourceTest.java

            }
    
            @Test
            @DisplayName("fileIndex should return valid index")
            void testFileIndex() throws CIFSException {
                // Given
                long expectedIndex = 12345L;
                when(mockResource.fileIndex()).thenReturn(expectedIndex);
    
                // When
                long index = mockResource.fileIndex();
    
                // Then
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 35K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SpnegoContextTest.java

            SpnegoContext ctx = newContext();
    
            // The initial token path should ask the mechanism for a zero-length optimistic token
            when(this.mechContext.getFlags()).thenReturn(0x1234);
            when(this.mechContext.initSecContext(any(byte[].class), eq(0), eq(0))).thenReturn(new byte[] { 0x01, 0x02 });
    
            // Act: len==0 triggers initial token construction
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkTest.java

            @ValueSource(ints = { 0, 1, 10, 50, 70 })
            void testEncodeAtDifferentPositions(int position) {
                // Given
                byte[] largeBuffer = new byte[200];
                long sourceOffset = 12345L;
                long targetOffset = 67890L;
                int length = 99999;
                SrvCopychunk chunk = new SrvCopychunk(sourceOffset, targetOffset, length);
    
                // When
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/ntlmssp/Type3MessageTest.java

        }
    
        @Test
        @DisplayName("Should handle parsing invalid message bytes")
        void testInvalidMessageBytes() {
            // Given
            byte[] invalidBytes = { 1, 2, 3, 4, 5 }; // Too short and invalid
    
            // When/Then
            assertThrows(IOException.class, () -> {
                new Type3Message(invalidBytes);
            });
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/trans2/Trans2FindNext2Test.java

    class Trans2FindNext2Test {
    
        private Trans2FindNext2 trans2FindNext2;
        private Configuration config;
    
        @Mock
        private Configuration mockConfig;
    
        private static final int TEST_SID = 0x1234;
        private static final int TEST_RESUME_KEY = 0xABCD;
        private static final String TEST_FILENAME = "testfile.txt";
        private static final int TEST_BATCH_COUNT = 100;
        private static final int TEST_BATCH_SIZE = 8192;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbTransportPoolImplTest.java

        }
    
        @Test
        @DisplayName("Should get challenge from server")
        void testGetChallenge() throws Exception {
            // Given: Mock transport with server key
            byte[] expectedKey = { 1, 2, 3, 4 };
    
            SmbTransportPoolImpl poolSpy = spy(pool);
            when(ctx.getTransportPool()).thenReturn(poolSpy);
    
            SmbTransportImpl mockTransport = mock(SmbTransportImpl.class);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 19.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SmbSessionImplTest.java

            assertTrue(noKey.getMessage().contains("No session key"));
    
            // Set a key via reflection and verify retrieval
            byte[] key = new byte[] { 1, 2, 3, 4 };
            setField(session, "sessionKey", key);
            assertArrayEquals(key, session.getSessionKey());
        }
    
        @Test
        @DisplayName("getSmbTree returns same instance for same share/service")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/SmbTransportPoolTest.java

        @Mock
        private InetAddress localAddr;
    
        private static final int DEFAULT_PORT = 445;
        private static final String TEST_HOST = "test.server.com";
        private static final int LOCAL_PORT = 12345;
    
        @BeforeEach
        void setUp() {
            // Common setup for all tests
        }
    
        @Nested
        @DisplayName("GetSmbTransport Methods")
        class GetSmbTransportTests {
    
            @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.6K bytes
    - Viewed (0)
Back to top