- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 470 for mockk (0.02 sec)
-
src/test/java/jcifs/smb/SmbRandomAccessFileTest.java
// Helper: build a minimally wired instance with mocks; avoids real I/O private SmbRandomAccessFile newInstance(String mode, boolean smb2, boolean ntSmbsCap, boolean unshared) throws CIFSException { SmbFile file = mock(SmbFile.class); SmbTreeHandleImpl tree = mock(SmbTreeHandleImpl.class); Configuration cfg = mock(Configuration.class); SmbFileHandleImpl fh = mock(SmbFileHandleImpl.class);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
mockwebserver/README.md
awkward-to-reproduce situations like 500 errors or slow-loading responses. ### Example Use MockWebServer the same way that you use mocking frameworks like [Mockito](https://github.com/mockito/mockito): 1. Script the mocks. 2. Run application code. 3. Verify that the expected requests were made. Here's a complete example: ### Java ```java public void test() throws Exception {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Jul 19 13:40:52 UTC 2025 - 8.1K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/samrTest.java
@DisplayName("SAMR Protocol Test Suite") class samrTest { @Mock private NdrBuffer mockNdrBuffer; @Mock private NdrBuffer mockDeferredBuffer; @Mock private rpc.policy_handle mockPolicyHandle; @Mock private rpc.sid_t mockSidT; @Mock private rpc.unicode_string mockUnicodeString; @Mock private lsarpc.LsarSidArray mockLsarSidArray; @BeforeEach
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 33.7K bytes - Viewed (0) -
src/test/java/jcifs/smb1/dcerpc/msrpc/samrTest.java
@DisplayName("SMB1 SAMR Protocol Test Suite") class samrTest { @Mock private NdrBuffer mockNdrBuffer; @Mock private NdrBuffer mockDeferredBuffer; @Mock private rpc.policy_handle mockPolicyHandle; @Mock private rpc.sid_t mockSidT; @Mock private rpc.unicode_string mockUnicodeString; @Mock private lsarpc.LsarSidArray mockLsarSidArray; @BeforeEach
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 33.6K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/helper/CrawlingInfoHelperTest.java
crawlingInfoHelper.documentExpires = currentTime + 5000; // For this test, we'll focus on the documentExpires fallback logic // since creating full CrawlingConfig mocks would require implementing many abstract methods Date result = crawlingInfoHelper.documentExpires != null ? new Date(crawlingInfoHelper.documentExpires) : null; assertNotNull(result);
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 12 05:35:01 UTC 2025 - 26.6K bytes - Viewed (0) -
src/test/java/jcifs/NameServiceClientTest.java
} @Test void testGetNbtAllByAddress_NetbiosAddress() throws UnknownHostException { // Arrange NetbiosAddress inputAddress = mock(NetbiosAddress.class); NetbiosAddress[] expectedAddresses = { mock(NetbiosAddress.class), mock(NetbiosAddress.class) }; when(nameServiceClient.getNbtAllByAddress(inputAddress)).thenReturn(expectedAddresses); // Act
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.4K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/indexer/IndexUpdaterTest.java
// Do nothing in test } } private static class TestClickLogBhv extends ClickLogBhv { // Mock implementation } private static class TestFavoriteLogBhv extends FavoriteLogBhv { // Mock implementation } private static class TestIngestFactory extends IngestFactory { private boolean throwException = false;
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 33K bytes - Viewed (0) -
src/test/java/jcifs/internal/NotifyResponseTest.java
*/ class NotifyResponseTest { @Mock private Configuration mockConfig; @Mock private FileNotifyInformation mockNotifyInfo1; @Mock private FileNotifyInformation mockNotifyInfo2; @Mock private CommonServerMessageBlockRequest mockRequest; /** * Mock implementation of NotifyResponse for testing interface behavior */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 21.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/DfsImplTest.java
@BeforeEach void setUp() throws IOException { // Mock the CIFSContext and its dependencies mockContext = mock(CIFSContext.class); mockConfig = mock(Configuration.class); mockCredentials = mock(Credentials.class); mockTransportPool = mock(SmbTransportPool.class); // Set up mock behaviors when(mockContext.getConfig()).thenReturn(mockConfig);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/WrappingExecutorServiceTest.java
MockExecutor mock = new MockExecutor(); TestExecutor testExecutor = new TestExecutor(mock); assertFalse(testExecutor.awaitTermination(10, MILLISECONDS)); mock.assertLastMethodCalled("awaitTermination"); assertFalse(testExecutor.isTerminated()); mock.assertLastMethodCalled("isTerminated"); assertFalse(testExecutor.isShutdown()); mock.assertLastMethodCalled("isShutdown");
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Jul 14 14:44:08 UTC 2025 - 9.9K bytes - Viewed (0)