- Sort Score
- Num 10 results
- Language All
Results 221 - 230 of 955 for Mock (0.02 seconds)
-
src/test/java/jcifs/internal/smb1/com/SmbComCloseTest.java
private PropertyConfiguration config; @BeforeEach public void setUp() throws CIFSException { // Create a mock configuration for testing Properties properties = new Properties(); config = new PropertyConfiguration(properties); context = mock(CIFSContext.class); when(context.getConfig()).thenReturn(config); } /**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) -
src/test/java/jcifs/internal/RequestTest.java
import org.junit.jupiter.api.extension.ExtendWith; import org.mockito.Mock; import org.mockito.junit.jupiter.MockitoExtension; import jcifs.CIFSContext; /** * Test class for Request interface */ @ExtendWith(MockitoExtension.class) class RequestTest { @Mock private Request<CommonServerMessageBlockResponse> request; @Mock private CommonServerMessageBlockResponse response; @MockCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 14.5K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbResourceLocatorInternalTest.java
import org.mockito.Mock; import org.mockito.junit.jupiter.MockitoExtension; import jcifs.CIFSException; import jcifs.DfsReferralData; import jcifs.SmbResourceLocator; @ExtendWith(MockitoExtension.class) public class SmbResourceLocatorInternalTest { @Mock SmbResourceLocatorInternal locator; @Mock SmbResourceLocator other; @Mock DfsReferralData referral;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 6.9K bytes - Click Count (0) -
src/test/java/jcifs/smb/PreauthIntegrityTest.java
*/ @ExtendWith(MockitoExtension.class) @MockitoSettings(strictness = Strictness.LENIENT) public class PreauthIntegrityTest { @Mock private CIFSContext context; @Mock private Configuration config; @Mock private Address address; @Mock private Smb2NegotiateResponse negotiateResponse; private SmbTransportImpl transport; @BeforeEachCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 10.5K bytes - Click Count (0) -
src/test/java/jcifs/AddressTest.java
import org.junit.jupiter.api.Test; import org.mockito.Mock; /** * Comprehensive test suite for Address interface. * Tests the contract and behavior of Address implementations. */ @DisplayName("Address Interface Tests") class AddressTest extends BaseTest { @Mock private CIFSContext mockContext; @Mock private Address mockAddress; @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.9K bytes - Click Count (0) -
src/test/java/jcifs/util/StringsTest.java
import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.never; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import java.io.UnsupportedEncodingException; import java.nio.charset.StandardCharsets;
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 18.6K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/rdma/RdmaIntegrationTest.java
} } @Test public void testRdmaTransportCreationWithMockDelegate() throws Exception { // Create a mock SmbTransportInternal for RdmaTransport SmbTransportInternal mockTransport = mock(SmbTransportInternal.class); when(mockTransport.isDisconnected()).thenReturn(true); when(mockTransport.toString()).thenReturn("MockTransport");Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 23 05:11:12 GMT 2025 - 13.8K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/RequestWithFileIdTest.java
import jcifs.internal.smb2.lock.Smb2Lock; import jcifs.internal.smb2.lock.Smb2LockRequest; /** * Test class for RequestWithFileId interface. * Tests the interface contract and various implementations. */ @ExtendWith(MockitoExtension.class) @DisplayName("RequestWithFileId Interface Tests") class RequestWithFileIdTest { @Mock private Configuration mockConfig;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.9K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/helper/ThemeHelperTest.java
} catch (Exception e) { assertTrue(true); // Expected exception } } @Test public void test_getJarFile_exists() throws IOException { // Create a mock jar file Path jarPath = tempDir.resolve("test-theme.jar"); Files.createFile(jarPath); ThemeHelper mockThemeHelper = new ThemeHelper() { @Override
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 14.7K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbRenewableCredentialsTest.java
} } @Test @DisplayName("Mockito: verify renew() interaction and return value") void mockitoInteraction(@Mock CredentialsInternal returned, @Mock SmbRenewableCredentials renewable) { // Arrange: stub renew() to return a mocked CredentialsInternal when(renewable.renew()).thenReturn(returned); // Act: invoke renew()Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7K bytes - Click Count (0)