Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 3,060 for Shouldn (0.04 sec)

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

            }).when(transport).send(any(ServerMessageBlock.class), any(ServerMessageBlock.class));
    
            session.send(req, resp);
            // Response state should be reset
            assertFalse(resp.received, "Response flag should be reset");
            // transport.send should be called at least once (for sessionSetup and the actual request)
            verify(transport, atLeastOnce()).send(any(ServerMessageBlock.class), any(ServerMessageBlock.class));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/create/CreateContextRequestTest.java

            }
    
            @Test
            @DisplayName("Should throw exception on null buffer")
            void testEncodeWithNullBuffer() {
                assertThrows(IllegalArgumentException.class, () -> testRequest.encode(null, 0), "Should throw exception for null buffer");
            }
    
            @Test
            @DisplayName("Should throw exception on negative index")
            void testEncodeWithNegativeIndex() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/dcerpc/msrpc/samrTest.java

        class SamrCloseHandleTests {
    
            @Test
            @DisplayName("Should construct with correct opnum")
            void testConstructorAndOpnum() {
                // When: Creating close handle message
                samr.SamrCloseHandle message = new samr.SamrCloseHandle(mockPolicyHandle);
    
                // Then: Should have correct opnum and handle
                assertEquals(0x01, message.getOpnum());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 33.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/rdma/tcp/TcpRdmaProviderTest.java

            assertNotNull(region, "Memory region should not be null");
            assertEquals(buffer, region.getBuffer(), "Buffer should match");
            assertEquals(1024, region.getSize(), "Size should match buffer size");
            assertTrue(region.hasAccess(RdmaAccess.LOCAL_READ), "Should have local read access");
            assertTrue(region.hasAccess(RdmaAccess.LOCAL_WRITE), "Should have local write access");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/nego/EncryptionNegotiateContextTest.java

            }
    
            @Test
            @DisplayName("Should create instance with null ciphers")
            void testConstructorWithNullCiphers() {
                EncryptionNegotiateContext context = new EncryptionNegotiateContext(mockConfig, null);
    
                assertNotNull(context);
                assertNull(context.getCiphers());
            }
    
            @Test
            @DisplayName("Should create instance with empty ciphers array")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralResponseTest.java

            }
    
            @Test
            @DisplayName("Should initialize DfsReferralResponseBuffer")
            void testDfsResponseBufferInitialization() {
                assertNotNull(response.getDfsResponse());
                assertTrue(response.getDfsResponse() instanceof DfsReferralResponseBuffer);
            }
    
            @Test
            @DisplayName("Should throw NullPointerException with null configuration")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/NtStatusTest.java

        }
    
        @Test
        @DisplayName("Should identify success status")
        void testSuccessStatusIdentification() {
            // Given
            int successStatus = NtStatus.NT_STATUS_SUCCESS;
    
            // When/Then
            assertEquals(0x00000000, successStatus);
            // Success status should be zero
            assertTrue(successStatus == 0);
        }
    
        @Test
        @DisplayName("Should identify error status codes")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/ioctl/SrvRequestResumeKeyResponseTest.java

            // Verify - should consume 28 bytes even though len is 24
            assertEquals(28, bytesConsumed, "Should consume 28 bytes");
    
            byte[] resumeKey = response.getResumeKey();
            assertNotNull(resumeKey, "Resume key should not be null");
            assertEquals(24, resumeKey.length, "Resume key should be 24 bytes");
    
            // Verify all bytes are 0xAA
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/io/Smb2WriteResponseTest.java

            @Test
            @DisplayName("Should initialize remaining to zero")
            void testInitialRemainingValue() {
                assertEquals(0, response.getRemaining());
            }
        }
    
        @Nested
        @DisplayName("Getter Tests")
        class GetterTests {
    
            @Test
            @DisplayName("Should get count value")
            void testGetCount() {
                // Initial value should be 0
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/script/ScriptEngineFactoryTest.java

                fail("Should throw IllegalArgumentException for null engine");
            } catch (IllegalArgumentException e) {
                assertEquals("name or scriptEngine is null.", e.getMessage());
            }
        }
    
        // Test add method with both null parameters
        public void test_add_bothNull() {
            try {
                scriptEngineFactory.add(null, null);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.1K bytes
    - Viewed (0)
Back to top