- Sort Score
- Num 10 results
- Language All
Results 311 - 320 of 653 for mocks (0.02 seconds)
-
src/test/java/jcifs/FileNotifyInformationTest.java
import org.junit.jupiter.params.provider.CsvSource; import org.junit.jupiter.params.provider.ValueSource; import org.mockito.Mock; import org.mockito.MockitoAnnotations; /** * Test class for FileNotifyInformation interface */ @TestInstance(TestInstance.Lifecycle.PER_CLASS) public class FileNotifyInformationTest { @Mock private FileNotifyInformation mockFileNotifyInfo; @BeforeEach void setUp() {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 18.1K bytes - Click Count (0) -
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) -
docs/contribute/concurrency.md
### Locks We have 3 different things that we synchronize on. #### Http2Connection
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Feb 06 16:35:36 GMT 2022 - 7K 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/internal/smb1/ServerMessageBlockTest.java
import jcifs.internal.util.SMBUtil; import jcifs.util.Strings; /** * Test class for ServerMessageBlock */ class ServerMessageBlockTest { @Mock private Configuration mockConfig; @Mock private SMB1SigningDigest mockDigest; @Mock private ServerMessageBlock mockResponse; private TestServerMessageBlock testBlock; /**Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 36.2K 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)