Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for testGetContext (0.05 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. src/test/java/jcifs/SmbTransportTest.java

        private CIFSContext cifsContext;
    
        @Mock
        private Address remoteAddress;
    
        @BeforeEach
        void setUp() {
            // Common setup for mocks if needed
        }
    
        @Test
        void testGetContext() {
            // Arrange
            when(smbTransport.getContext()).thenReturn(cifsContext);
    
            // Act
            CIFSContext result = smbTransport.getContext();
    
            // Assert
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 3K bytes
    - Click Count (0)
  2. src/test/java/jcifs/SmbResourceTest.java

                assertSame(mockLocator, locator, "Should return the expected locator");
            }
    
            @Test
            @DisplayName("getContext should return CIFSContext")
            void testGetContext() throws CIFSException {
                // Given
                SmbResource resource = createMockResource();
                when(resource.getContext()).thenReturn(mockContext);
    
                // When
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 35K bytes
    - Click Count (0)
Back to Top