- Sort Score
- Num 10 results
- Language All
Results 201 - 210 of 419 for mockk (0.02 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
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/SmbNegotiationResponseTest.java
import org.junit.jupiter.api.Test; import org.mockito.Mock; import org.mockito.MockitoAnnotations; import jcifs.CIFSContext; import jcifs.DialectVersion; import jcifs.util.transport.Response; /** * Test class for SmbNegotiationResponse interface */ class SmbNegotiationResponseTest { @Mock private SmbNegotiationResponse negotiationResponse; @Mock private CIFSContext cifsContext; @MockCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 20.6K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/job/PurgeLogJobTest.java
final int[] searchLogDeletedDays = { 0 }; final int[] jobLogDeletedDays = { 0 }; final int[] userInfoDeletedDays = { 0 }; final long[] expectedTime = { 0 }; // Create mock services CrawlingInfoService crawlingInfoService = new CrawlingInfoService() { @Override public void deleteBefore(long time) { deleteCrawlingInfoCalled[0] = true;
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 32.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) -
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/SmbResourceLocatorTest.java
DummySmbResourceLocator root = new DummySmbResourceLocator("smb://server/"); assertEquals("server/", root.getName()); } } @Mock DfsReferralData dfs; @Mock Address addr; @Test @DisplayName("Mockito interaction – dependent objects are called appropriately") void testInteractionsWithStubbedDependencies() throws Exception {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 8K bytes - Click Count (0) -
src/test/java/jcifs/dcerpc/msrpc/MsrpcShareGetInfoTest.java
import org.mockito.Mock; import org.mockito.junit.jupiter.MockitoExtension; import jcifs.dcerpc.DcerpcConstants; import jcifs.internal.dtyp.ACE; import jcifs.internal.dtyp.SecurityDescriptor; @ExtendWith(MockitoExtension.class) class MsrpcShareGetInfoTest { @Mock private srvsvc.ShareInfo502 mockShareInfo502; @Mock private SecurityDescriptor mockSecurityDescriptor;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 14.3K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans/TransWaitNamedPipeResponseTest.java
import static org.mockito.Mockito.mock; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import org.mockito.Mock; import org.mockito.MockitoAnnotations; import jcifs.Configuration; /** * Test class for TransWaitNamedPipeResponse */ class TransWaitNamedPipeResponseTest { @Mock private Configuration mockConfig;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 14.1K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/helper/DataIndexHelperTest.java
// Reduce default interval to minimize test execution time dataIndexHelper.setCrawlingExecutionInterval(1L); // 1ms instead of 5000ms } private void setupMockComponents() { // Lightweight mock CrawlingConfigHelper ComponentUtil.register(new CrawlingConfigHelper() { @Override public List<DataConfig> getAllDataConfigList() {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 12.9K bytes - Click Count (0)