- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for testGetContext (0.05 seconds)
-
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(); // AssertCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 3K bytes - Click Count (0) -
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)