Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 7 of 7 for stubbing (0.29 seconds)

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

     * with different kinds of inputs.  Many static helpers in {@code
     * UniAddress} are network dependent and therefore not exercised here – they
     * would require complex stubbing of static methods.  Instead the tests
     * concentrate on the instance methods and simple static predicates
     * that are observable without network access.
     */
    @ExtendWith(MockitoExtension.class)
    class UniAddressTest {
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7.9K bytes
    - Click Count (0)
  2. src/test/java/jcifs/smb1/smb1/SmbConstantsTest.java

            jcifs.SmbTransport mock = mock(jcifs.SmbTransport.class);
            // Stub the getRemoteHostName method
            when(mock.getRemoteHostName()).thenReturn("test-host");
            // Verify the stubbing
            assertEquals("test-host", mock.getRemoteHostName());
            // Ensure that the mock was interacted with
            verify(mock).getRemoteHostName();
        }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  3. src/test/java/jcifs/internal/SmbNegotiationRequestTest.java

            // Then
            assertNotNull(mockRequest, "Mock should be created successfully");
        }
    
        @Test
        @DisplayName("Test default behavior of mock without stubbing")
        void testDefaultBehaviorOfMock() {
            // Given
            SmbNegotiationRequest mockRequest = mock(SmbNegotiationRequest.class);
    
            // When
            boolean result = mockRequest.isSigningEnforced();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 6.4K bytes
    - Click Count (0)
  4. src/test/java/jcifs/smb1/smb1/SmbRandomAccessFileTest.java

    import java.net.MalformedURLException;
    import java.net.UnknownHostException;
    
    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.Test;
    import org.mockito.invocation.InvocationOnMock;
    import org.mockito.stubbing.Answer;
    
    class SmbRandomAccessFileTest {
    
        private SmbFile smbFile;
        private SmbTree smbTree;
        private SmbSession smbSession;
        private SmbTransport smbTransport;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.3K bytes
    - Click Count (0)
  5. .github/ISSUE_TEMPLATE/feature_enhancement_request.yaml

            programmers everywhere. If you can give enough detail such that any of us can imagine coming
            across a similar need in our own work, that's extremely helpful in studying how broadly
            useful the proposed change will be.
    
      - type: textarea
        attributes:
          label: Concrete Use Cases
          description: Please provide use cases that actually came up in the real world.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Nov 17 18:47:47 GMT 2023
    - 3.9K bytes
    - Click Count (0)
  6. docs/en/docs/history-design-future.md

    For example, it was clear that ideally it should be based on standard Python type hints.
    
    Also, the best approach was to use already existing standards.
    
    So, before even starting to code **FastAPI**, I spent several months studying the specs for OpenAPI, JSON Schema, OAuth2, etc. Understanding their relationship, overlap, and differences.
    
    ## Design { #design }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 4K bytes
    - Click Count (0)
  7. .github/ISSUE_TEMPLATE/feature_addition_request.yaml

            everywhere. If you can give enough detail such that any of us can imagine coming across
            a similar need in our own work, that's extremely helpful in studying how broadly useful the
            feature will be.
    
      - type: textarea
        attributes:
          label: Concrete Use Cases
          description: Please provide use cases that actually came up in the real world.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Nov 17 18:47:47 GMT 2023
    - 5.8K bytes
    - Click Count (0)
Back to Top