Search Options

Results per page
Sort
Preferred Languages
Advance

Results 171 - 180 of 3,084 for shouldn (0.1 sec)

  1. 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)
  2. src/test/java/jcifs/SmbConnectionTest.java

            assertTrue(config.isUseUnicode(), "Unicode should be enabled");
            assertTrue(config.isUseBatching(), "Batching should be enabled");
    
            // When both are enabled, batch limits should be available
            int limit = config.getBatchLimit("TreeConnectAndX.QueryInformation");
            assertTrue(limit >= 0, "Batch limit should be non-negative when Unicode and batching enabled");
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/SmbNegotiationTest.java

            testResponseBuffer = new byte[] { 0x05, 0x06, 0x07, 0x08 };
            negotiation = new SmbNegotiation(mockRequest, mockResponse, testRequestBuffer, testResponseBuffer);
        }
    
        @Test
        @DisplayName("Constructor should properly initialize all fields")
        void testConstructor() {
            // Verify all fields are properly initialized
            assertNotNull(negotiation);
            assertSame(mockRequest, negotiation.getRequest());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/helper/NotificationHelperTest.java

                }
            });
    
            MockSMailPostingDiscloser discloser = new MockSMailPostingDiscloser();
    
            // Should return early without doing anything
            try {
                notificationHelper.sendToSlack(null, discloser);
            } catch (Exception e) {
                fail("sendToSlack() should not throw an exception with blank URLs: " + e.getMessage());
            }
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 10 13:41:04 UTC 2025
    - 19.6K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/lease/LeaseManagerTest.java

                // key3 should definitely exist (just created)
                assertNotNull(limitedManager.getLease(key3));
    
                // key1 should have been evicted (oldest)
                assertNull(limitedManager.getLease(key1));
    
                // key2 should still exist (not the oldest)
                assertNotNull(limitedManager.getLease(key2));
            } finally {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/SmbTreeHandleTest.java

        void testGetConfig() {
            when(smbTreeHandle.getConfig()).thenReturn(mockConfig);
            Configuration config = smbTreeHandle.getConfig();
            assertNotNull(config, "Configuration should not be null");
            assertEquals(mockConfig, config, "Should return the mock Configuration object");
        }
    
        /**
         * Test for close() method.
         * Verifies that the close method can be called without throwing an exception.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.1K 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/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)
  10. src/test/java/jcifs/spnego/NegTokenInitTest.java

            assertArrayEquals(mechs, parsed.getMechanisms(), "Mechanism OIDs should round-trip");
            assertEquals(flags, parsed.getContextFlags(), "Flags should round-trip");
            assertArrayEquals(mechToken, parsed.getMechanismToken(), "Mechanism token should round-trip");
            assertArrayEquals(mic, parsed.getMechanismListMIC(), "MIC should round-trip");
    
            assertTrue(parsed.getContextFlag(NegTokenInit.DELEGATION));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21K bytes
    - Viewed (0)
Back to top