- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 297 for mocked (0.04 seconds)
-
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; @BeforeEachCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 33.6K bytes - Click Count (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; @BeforeEachCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 33.7K bytes - Click Count (0) -
src/test/java/jcifs/internal/AllocInfoTest.java
assertEquals(7, FileSystemInformation.FS_FULL_SIZE_INFO); } } @Nested @DisplayName("Mock Behavior Tests") class MockBehaviorTests { @Test @DisplayName("Should return mocked capacity value") void shouldReturnMockedCapacity() { // Given long expectedCapacity = 1024L * 1024L * 1024L * 100L; // 100GB
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 18.8K bytes - Click Count (0) -
src/test/java/jcifs/pac/kerberos/KerberosTicketTest.java
import org.junit.jupiter.api.extension.ExtendWith; import org.mockito.Mock; import org.mockito.MockedStatic; import org.mockito.Mockito; import org.mockito.junit.jupiter.MockitoExtension; import jcifs.pac.PACDecodingException; /** * Unit tests for the KerberosTicket class. */ @ExtendWith(MockitoExtension.class) class KerberosTicketTest { @Mock private KerberosKey kerberosKey;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.4K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbFileHandleImplTest.java
SmbTreeHandleImpl t1 = h.getTree(); SmbTreeHandleImpl t2 = h.getTree(); assertSame(tree, t1, "Expected same mocked tree"); assertSame(tree, t2, "Expected same mocked tree"); // acquire is called once in ctor + once per getTree() call verify(tree, times(3)).acquire(); } @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.3K bytes - Click Count (0) -
src/test/java/jcifs/http/NetworkExplorerTest.java
private NetworkExplorer networkExplorer; @Mock private ServletConfig servletConfig; @Mock private ServletContext servletContext; @Mock private HttpServletRequest request; @Mock private HttpServletResponse response; @Mock private HttpSession session; @Mock private SmbFile smbFile; @Mock private SmbResourceLocator locator;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 21 04:51:33 GMT 2025 - 21.2K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbTransportInternalTest.java
import org.mockito.ArgumentCaptor; import org.mockito.Mock; import org.mockito.Mockito; import org.mockito.junit.jupiter.MockitoExtension; import jcifs.SmbSession; /** * Tests for SmbTransportInternal interface using Mockito mocks to * exercise method contracts, checked exceptions, and interactions. */ @ExtendWith(MockitoExtension.class) public class SmbTransportInternalTest { @Mock private SmbTransportInternal transport;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 12.1K bytes - Click Count (0) -
src/test/java/jcifs/smb/FileEntryTest.java
import org.junit.jupiter.params.provider.MethodSource; import org.mockito.InOrder; import org.mockito.Mock; import org.mockito.junit.jupiter.MockitoExtension; @ExtendWith(MockitoExtension.class) class FileEntryTest { @Mock FileEntry mockEntry; // Simple fake implementation to exercise the interface without mocks private static final class TestFileEntry implements FileEntry { private final String name;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10K bytes - Click Count (0) -
src/test/java/jcifs/smb1/util/transport/TransportExceptionTest.java
@DisplayName("Should handle circular reference in root cause") void testCircularReferenceInRootCause() { // Create a mock exception that could have circular reference Exception rootCause = mock(Exception.class); when(rootCause.getMessage()).thenReturn("Mocked exception"); TransportException exception = new TransportException("Test", rootCause);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.5K bytes - Click Count (0) -
src/test/java/jcifs/SmbSessionTest.java
} } @Nested @DisplayName("Mock Interaction Tests") class MockInteractionTest { @Test @DisplayName("Should allow all methods to be mocked independently") void shouldAllowAllMethodsToBeMockedIndependently() throws Exception { SmbSession mockSession = mock(SmbSession.class); Configuration mockConfig = mock(Configuration.class);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.1K bytes - Click Count (0)