- Sort Score
- Result 10 results
- Languages All
Results 141 - 150 of 784 for mock (0.04 sec)
-
src/test/java/jcifs/netbios/NameServicePacketTest.java
import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.mockito.Mock; import org.mockito.MockitoAnnotations; import jcifs.Configuration; class NameServicePacketTest { private TestNameServicePacket packet; @Mock private Configuration mockConfig; @Mock private Name mockQuestionName; @Mock private Name mockRecordName;Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.9K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/ndr/NdrHyperTest.java
import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.mockito.Mock; import org.mockito.MockitoAnnotations; class NdrHyperTest { @Mock private NdrBuffer mockNdrBuffer; @BeforeEach void setUp() { // Initialize mocks before each test MockitoAnnotations.openMocks(this); } @Test void testConstructorAndGetValue() {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/multichannel/ChannelFailoverTest.java
@MockitoSettings(strictness = Strictness.LENIENT) class ChannelFailoverTest { @Mock private ChannelManager mockChannelManager; @Mock private ChannelLoadBalancer mockLoadBalancer; @Mock private SmbTransport mockTransport; @Mock private SmbTransport mockNewTransport; @Mock private CommonServerMessageBlock mockOperation; private ChannelFailover failover;Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 7.7K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/DosFileFilterTest.java
SmbFile file = mock(SmbFile.class); when(file.getAttributes()).thenReturn(SmbFile.ATTR_NORMAL); assertTrue(filter.accept(file), "Attributes match should be accepted"); verify(file, times(1)).getAttributes(); } @Test public void testAcceptReturnsFalseWhenAttributesDoNotMatch() throws Exception { SmbFile file = mock(SmbFile.class);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 1.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/NetServerFileEntryAdapterIteratorTest.java
* and delegation to the underlying iterator. */ @ExtendWith(MockitoExtension.class) class NetServerFileEntryAdapterIteratorTest { @Mock NetServerEnumIterator delegate; @Mock ResourceFilter filter; @Mock SmbResource parent; @Mock SmbResourceLocator parentLocator; private CIFSContext ctx; @BeforeEach void setup() {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.9K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/MsrpcLsarCloseTest.java
// Create a mock policy_handle for each test mockHandle = mock(policy_handle.class); } /** * Test case for the {@link MsrpcLsarClose#MsrpcLsarClose(policy_handle)} constructor. * Verifies that the handle, ptype, and flags are correctly initialized. */ @Test void testConstructor() { // Create an instance of MsrpcLsarClose with the mock handleRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 1.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/RequestWithPathTest.java
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.mockito.Mock; import org.mockito.junit.jupiter.MockitoExtension; /** * Test class for RequestWithPath interface */ @ExtendWith(MockitoExtension.class) class RequestWithPathTest { @Mock private RequestWithPath requestWithPath; private TestRequestWithPath testImplementation; @BeforeEachRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.2K bytes - Viewed (0) -
src/test/java/jcifs/http/NtlmSspTest.java
@ExtendWith(MockitoExtension.class) public class NtlmSspTest { @Mock private CIFSContext mockCifsContext; @Mock private Configuration mockConfig; @Mock private NameServiceClient mockNameServiceClient; @Mock private NetbiosAddress mockAddress; @Mock private HttpServletRequest mockRequest; @Mock private HttpServletResponse mockResponse;Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 11.4K bytes - Viewed (1) -
src/test/java/jcifs/smb/SmbSessionInternalTest.java
* method contracts, checked exceptions, and interactions with collaborators. */ @ExtendWith(MockitoExtension.class) public class SmbSessionInternalTest { @Mock private SmbSessionInternal session; @Mock private SmbTransport transport; @Mock private SmbTree tree; @BeforeEach void resetMocks() { Mockito.reset(session, transport, tree); }Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/InfoTest.java
import static org.mockito.Mockito.mock; import java.util.Date; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.mockito.Mock; /** * Unit tests for the {@link Info} implementations used by the SMB1 * protocol handling code. */ class InfoTest { // A tiny mock to illustrate Mockito interaction patterns. @MockRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.5K bytes - Viewed (0)