Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 347 for directly (0.04 sec)

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

            String result = response.toString();
            assertNotNull(result, "toString() should not return null.");
        }
    
        // Helper method to access the super.toString() for verification,
        // as we cannot call it directly from the test.
        // This requires a package-private or public method in the class under test,
        // or we can just check for the prefix and suffix.
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/suggest/SuggesterResourceLoadingTest.java

        /**
         * Test that getDefaultMappings correctly loads and returns mapping resource.
         */
        @Test
        public void testGetDefaultMappings_loadsCorrectly() throws Exception {
            // Load resource directly to verify it exists
            try (InputStream is = getClass().getClassLoader().getResourceAsStream("suggest_indices/suggest/mappings-default.json")) {
                assertNotNull("Mapping resource should exist", is);
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Mon Nov 24 03:40:05 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/SmbTreeTest.java

        private SmbTransport transport;
    
        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
            // Setup transport fields that are accessed directly
            transport.tconHostName = "testHost";
            // Setup session.transport field (accessed directly in SmbTree)
            session.transport = transport;
            // Setup session to return transport via method call
            when(session.transport()).thenReturn(transport);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/context/SingletonContextTest.java

            System.setProperty("jcifs.properties", nonExistentPath.toString());
    
            // Expect no exception to be thrown, but an error logged (which we can't directly assert here)
            assertDoesNotThrow(() -> SingletonContext.init(null));
            assertNotNull(SingletonContext.getInstance()); // Should still initialize
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/com/SmbComLockingAndXTest.java

     * Tests for {@link SmbComLockingAndX}.  The source class exposes
     * its wire-format helpers as protected methods and its internal state
     * is stored in private fields; tests make use of the same package to
     * access those members directly.
     */
    @ExtendWith(MockitoExtension.class)
    class SmbComLockingAndXTest {
    
        /**
         * Helper for setting a field via reflection.
         */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/dcerpc/msrpc/LsaPolicyHandleTest.java

            // Assert
            assertNotNull(handle);
            verify(mockDcerpcHandle, times(1)).sendrecv(any(MsrpcLsarOpenPolicy2.class));
            // We cannot directly assert the 'opened' field as it's private, but successful construction implies it.
        }
    
        @Test
        void constructor_shouldHandleNullServerSuccessfully() throws IOException {
            // Arrange
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/web/go/GoAction.java

        /**
         * Handles document redirection requests.
         * Validates the document ID, logs click events if enabled, and redirects
         * to the target URL or serves file content directly if configured.
         *
         * @param form the go form containing document ID and tracking parameters
         * @return action response for redirection or content streaming
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Dec 11 09:47:03 UTC 2025
    - 9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbSessionImplSecurityTest.java

            assertNotNull(tree1);
            assertNotNull(tree2);
    
            // When - Release session to trigger cleanup
            session.release();
    
            // Then - Trees should be cleared (we can't directly verify as it's internal,
            // but the cleanup code with synchronized block ensures it happens atomically)
            // The important part is that no exception occurs and the operation is atomic
        }
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupResponseTest.java

            int bodyStart = headerStart + Smb2Constants.SMB2_HEADER_LENGTH;
            byte[] blob = new byte[] { 10, 20, 30, 40, 50 };
            int secBufOffset = Smb2Constants.SMB2_HEADER_LENGTH + 8; // directly after fixed part
            int sessionFlags = Smb2SessionSetupResponse.SMB2_SESSION_FLAGS_IS_GUEST;
            buildSessionSetupBody(buf, headerStart, bodyStart, sessionFlags, secBufOffset, blob);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb1/com/SmbComCloseTest.java

            SmbComClose smbComClose = new SmbComClose(config, fid, lastWriteTime);
    
            // Then
            assertEquals(ServerMessageBlock.SMB_COM_CLOSE, smbComClose.getCommand());
            // Private fields are not directly accessible, but we can check their effect in other methods.
        }
    
        /**
         * Test method for {@link jcifs.internal.smb1.com.SmbComClose#writeParameterWordsWireFormat(byte[], int)}.
         */
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.4K bytes
    - Viewed (0)
Back to top