- Sort Score
- Num 10 results
- Language All
Results 61 - 70 of 813 for mock (0.02 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
src/test/java/jcifs/internal/smb2/multichannel/ChannelLoadBalancerTest.java
/** * Unit tests for ChannelLoadBalancer */ @ExtendWith(MockitoExtension.class) class ChannelLoadBalancerTest { @Mock private ChannelManager mockChannelManager; @Mock private SmbTransport mockTransport1; @Mock private SmbTransport mockTransport2; @Mock private CommonServerMessageBlock mockMessage; private ChannelLoadBalancer loadBalancer; private ChannelInfo channel1;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 23 05:11:12 GMT 2025 - 7.7K bytes - Click Count (0) -
src/test/java/jcifs/dcerpc/DcerpcSecurityProviderTest.java
import org.junit.jupiter.api.Test; import org.mockito.Mock; import org.mockito.MockitoAnnotations; import jcifs.dcerpc.ndr.NdrBuffer; class DcerpcSecurityProviderTest { @Mock private DcerpcSecurityProvider dcerpcSecurityProvider; @Mock private NdrBuffer mockNdrBuffer; @BeforeEach void setUp() { // Initialize mocks before each test MockitoAnnotations.openMocks(this);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 2.5K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/create/CreateContextRequestTest.java
assertEquals(32, mock.size()); } @Test @DisplayName("Should handle null string name") void testMockWithNullStringName() { MockCreateContextRequest mock = new MockCreateContextRequest(null); assertNull(mock.getName()); } @Test @DisplayName("Should return configured size from encode")
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 24.9K bytes - Click Count (0) -
src/test/java/jcifs/smb/DirFileEntryAdapterIteratorTest.java
* scenarios that don't require complex filter setups. */ @ExtendWith(MockitoExtension.class) class DirFileEntryAdapterIteratorTest { @Mock private SmbResource mockParent; @Mock private CloseableIterator<FileEntry> mockDelegate; @Mock private ResourceFilter mockFilter; @Mock private FileEntry mockFileEntry1; @Mock
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 14.4K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbTreeHandleImplTest.java
@ExtendWith(MockitoExtension.class) @MockitoSettings(strictness = Strictness.LENIENT) class SmbTreeHandleImplTest { @Mock SmbResourceLocatorImpl resourceLoc; @Mock SmbTreeConnection treeConnection; @Mock SmbSessionImpl session; @Mock SmbTransportImpl transport; @Mock Configuration config; private SmbTreeHandleImpl handle; @BeforeEach void setUp() {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 14.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java
} @AndroidIncompatible // Mocking ExecutorService is forbidden there. TODO(b/218700094): Don't mock. public void testGetExitingExecutorService_executorDelegatesToOriginal() { TestApplication application = new TestApplication(); ThreadPoolExecutor executor = mock(ThreadPoolExecutor.class); ThreadFactory threadFactory = mock(ThreadFactory.class); when(executor.getThreadFactory()).thenReturn(threadFactory);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 26.1K bytes - Click Count (0) -
src/test/java/jcifs/SmbPipeHandleTest.java
* Initializes a mock {@link SmbPipeResource} and a mock implementation of {@link SmbPipeHandle}. * @throws CIFSException if an error occurs during setup. */ @BeforeEach public void setUp() throws CIFSException { mockPipeResource = mock(SmbPipeResource.class); mockSmbPipeHandleInternal = mock(SmbPipeHandleInternal.class); mockInputStream = mock(InputStream.class);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/ntlmssp/Type2MessageTest.java
*/ private CIFSContext createMockContext() { CIFSContext mockContext = mock(CIFSContext.class); Configuration mockConfig = mock(Configuration.class); NameServiceClient mockNameServiceClient = mock(NameServiceClient.class); NetbiosAddress mockHost = mock(NetbiosAddress.class); when(mockContext.getConfig()).thenReturn(mockConfig);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 38.9K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseManagerTest.java
*/ public class DirectoryLeaseManagerTest { @Mock private CIFSContext context; @Mock private Configuration config; @Mock private LeaseManager baseLeaseManager; @Mock private SmbFile mockFile1; @Mock private SmbFile mockFile2; private DirectoryLeaseManager directoryLeaseManager; private AutoCloseable mocks; @BeforeEach public void setUp() {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 23 01:47:47 GMT 2025 - 15.9K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/FlushablesTest.java
// 'swallowException' when the mock does not throw an exception. setupFlushable(false); doFlush(mockFlushable, false, false); setupFlushable(false); doFlush(mockFlushable, true, false); } public void testFlush_flushableWithEatenException() throws IOException { // make sure that no exception is thrown if 'swallowException' is true // when the mock does throw an exception on flush.
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Jul 16 20:34:52 GMT 2025 - 3.3K bytes - Click Count (0)