Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 766 for properly (0.05 sec)

  1. src/test/java/jcifs/internal/smb1/net/SmbShareInfoTest.java

        @DisplayName("Test FileEntry interface implementation")
        void testFileEntryInterface() {
            // Verify that SmbShareInfo properly implements FileEntry interface
            SmbShareInfo info = new SmbShareInfo(TEST_NET_NAME, TEST_TYPE, TEST_REMARK);
    
            // Cast to FileEntry to ensure interface is properly implemented
            jcifs.smb.FileEntry fileEntry = info;
    
            // Verify all FileEntry methods work
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/http/NtlmHttpServletRequestTest.java

    import jakarta.servlet.http.HttpServletRequest;
    
    @ExtendWith(MockitoExtension.class)
    public class NtlmHttpServletRequestTest {
    
        @Test
        @DisplayName("constructor stores principal and delegates properly")
        void testHappyPath(@Mock HttpServletRequest mockRequest, @Mock Principal mockPrincipal) {
            when(mockPrincipal.getName()).thenReturn("user1");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  3. src/test/java/jcifs/util/PathValidatorTest.java

        }
    
        @Test
        public void testUncPathNotAllowed() throws Exception {
            PathValidator noUncValidator = new PathValidator(260, 255, false, false);
            // Due to normalization bug, UNC paths are not properly detected
            // The normalization removes all duplicate backslashes, so \\\\server becomes \server
            // This test validates that paths which should be UNC but aren't detected due to normalization
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 14.6K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/dict/DictionaryExceptionTest.java

            assertTrue(exception instanceof Exception);
            assertTrue(exception instanceof Throwable);
        }
    
        public void test_stackTrace() {
            // Test that stack trace is properly set
            DictionaryException exception = new DictionaryException("Stack trace test");
    
            assertNotNull(exception.getStackTrace());
            assertTrue(exception.getStackTrace().length > 0);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/thumbnail/impl/BaseThumbnailGeneratorTest.java

            generator = new TestThumbnailGenerator();
            Map<String, Object> docMap = new HashMap<>();
            docMap.put("id", "doc123");
    
            // Since createTask depends on FessConfig, it may not work properly
            // in unit tests without full container
            try {
                generator.createTask("/path/to/thumb.jpg", docMap);
            } catch (Exception e) {
                // Expected when FessConfig is not available
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/dcerpc/msrpc/MsrpcSamrConnect2Test.java

            }
        }
    
        @Nested
        @DisplayName("Inheritance verification")
        class InheritanceVerification {
    
            @Test
            @DisplayName("should properly extend base classes")
            void testInheritance() {
                // Arrange
                SamrPolicyHandle ph = createMockPolicyHandle();
    
                // Act
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/fscc/BasicFileInformationTest.java

            // Given
            byte[] buffer = new byte[64];
            int bufferIndex = 8;
    
            // Prepare test data in buffer (40 bytes of data)
            // Use SMBUtil to properly encode times in Windows FILETIME format
            SMBUtil.writeTime(TEST_CREATE_TIME, buffer, bufferIndex);
            SMBUtil.writeTime(TEST_LAST_ACCESS_TIME, buffer, bufferIndex + 8);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseInputValidationTest.java

        @BeforeEach
        public void setUp() {
            mockConfig = Mockito.mock(Configuration.class);
            response = new Smb2NegotiateResponse(mockConfig);
        }
    
        /**
         * Test that malformed structure size is properly rejected.
         */
        @Test
        public void testMalformedStructureSize() {
            byte[] malformedBuffer = createBasicNegotiateResponseBuffer();
            // Set incorrect structure size (should be 65)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SmbPipeHandleInternalTest.java

        void sendrecv_smb2_ioctl() throws Exception {
            // Arrange
            SmbPipeHandleImpl handle = newHandleWithBasicStubs(0, "\\\\pipe\\\\x");
    
            // Setup the tree handle properly
            when(pipe.ensureTreeConnected()).thenReturn(tree);
            when(tree.acquire()).thenReturn(tree);
    
            // Setup for ensureOpen
            when(tree.isSMB2()).thenReturn(true);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/mylasta/direction/FessConfigTest.java

        }
    
        // Test property not found exception
        public void test_propertyNotFound() {
            try {
                fessConfig.get("non.existent.property");
                fail("Should throw ConfigPropertyNotFoundException");
            } catch (ConfigPropertyNotFoundException e) {
                assertEquals("non.existent.property", e.getMessage());
            }
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 23.8K bytes
    - Viewed (0)
Back to top