Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 92 for delegates (3.95 sec)

  1. src/test/java/jcifs/smb/SmbTreeHandleImplTest.java

        @Test
        @DisplayName("Constructor acquires tree connection; getConfig/isConnected delegate")
        void constructorAndSimpleDelegations() {
            // Ensures constructor acquires tree connection and simple delegate methods forward correctly
            // Verify constructor invoked acquire once
            verify(treeConnection, times(1)).acquire();
    
            // getConfig delegates
            when(treeConnection.getConfig()).thenReturn(config);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbPipeInputStreamTest.java

            assertTrue(ex.getMessage().contains("boom"));
        }
    
        @Test
        @DisplayName("ensureTreeConnected delegates to handle")
        void ensureTreeConnected_delegates() throws Exception {
            // Verify ensureTreeConnected() delegates to SmbPipeHandleImpl
            SmbPipeInputStream stream = newStreamWithMinimalStubs(true);
            when(handle.ensureTreeConnected()).thenReturn(tree);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/app/web/base/FessBaseAction.java

        // you should remove the 'final' if you need to override this
        /**
         * Hook method called before action execution.
         * This method refreshes the user information if a user is logged in
         * and delegates to the view helper's action hook.
         *
         * @param runtime the action runtime context
         * @return the action response, or null to continue with normal processing
         */
        @Override
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 15K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbPipeHandleImplTest.java

            verify(tree).send(captor.capture(), any());
            assertNotNull(captor.getValue());
        }
    
        @Test
        @DisplayName("recv delegates to input.readDirect and returns its value")
        void testRecvDelegation() throws Exception {
            SmbPipeHandleImpl spyTarget = spy(target);
            SmbPipeInputStream in = mock(SmbPipeInputStream.class);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  5. src/test/java/jcifs/context/CIFSContextWrapperTest.java

            // This test primarily ensures that the wrapper correctly handles the MalformedURLException
            // and delegates the SmbFile creation.
    
            // When a valid URL is provided, it should not throw an exception.
            assertNotNull(cifsContextWrapper.get(url));
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/DirFileEntryAdapterIteratorTest.java

                }
            };
    
            // When/Then
            assertThrows(CIFSException.class, () -> iterator.close(), "Should propagate exception from delegate close");
        }
    
        /**
         * Test remove method delegates to underlying iterator.
         */
        @Test
        void testRemove() {
            // Given
            when(mockDelegate.hasNext()).thenReturn(true, false);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/FileEntryAdapterIteratorTest.java

        void emptyIterator() {
            when(delegate.hasNext()).thenReturn(false);
    
            TestIterator iterator = new TestIterator(null);
    
            assertFalse(iterator.hasNext());
            assertNull(iterator.next());
        }
    
        @Test
        @DisplayName("Close delegates to underlying iterator")
        void closeDelegation() throws CIFSException {
            when(delegate.hasNext()).thenReturn(false);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/Kerb5ContextTest.java

        void calculateMIC_nullData() {
            assertThrows(NullPointerException.class, () -> ctx.calculateMIC(null));
        }
    
        @Test
        @DisplayName("verifyMIC delegates to GSS and succeeds")
        void verifyMIC_success() throws Exception {
            byte[] data = new byte[] { 1, 2 };
            byte[] mic = new byte[] { 3 };
            // No exception means success
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/CredentialsInternalTest.java

    class CredentialsInternalTest {
    
        @Mock
        CIFSContext mockContext;
    
        /**
         * Simple in-test implementation of CredentialsInternal to exercise the API surface.
         * It validates inputs, records calls, and delegates some behavior to collaborators
         * so we can verify interactions.
         */
        static class TestCredentials implements CredentialsInternal {
            private final String domain;
            private final boolean anonymous;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  10. fess-crawler-opensearch/src/test/java/org/codelibs/fess/crawler/client/FesenClientTest.java

                assertEquals(0, indices.length);
            } catch (Exception e) {
                fail("Should handle null targetIndices: " + e.getMessage());
            }
        }
    
        /**
         * Test: prepareStreamSearch delegates to prepareSearch
         * Verifies that both methods return the same result
         */
        @Test
        public void testPrepareStreamSearchDelegatesToPrepareSearch() {
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 20 08:44:44 UTC 2025
    - 17K bytes
    - Viewed (0)
Back to top