- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 99 for openMocks (0.04 sec)
-
src/test/java/jcifs/internal/CommonServerMessageBlockTest.java
@Mock private CommonServerMessageBlockResponse response; @Mock private SMBSigningDigest digest; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); } @Test @DisplayName("Test decode method with valid buffer") void testDecodeWithValidBuffer() throws SMBProtocolDecodingException { // Given byte[] buffer = new byte[256];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransWaitNamedPipeResponseTest.java
*/ class TransWaitNamedPipeResponseTest { @Mock private Configuration mockConfig; private TransWaitNamedPipeResponse response; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); response = new TransWaitNamedPipeResponse(mockConfig); } @Test @DisplayName("Constructor should initialize TransWaitNamedPipeResponse") void testConstructor() { // Assert
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeImplTest.java
@Mock private CIFSContext context; @Mock private SmbTransportImpl transport; @BeforeEach void setUp() throws Exception { MockitoAnnotations.openMocks(this); when(session.getConfig()).thenReturn(config); when(session.getContext()).thenReturn(context); when(session.getTransport()).thenReturn(transport);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/SmbComTransactionResponseTest.java
} void setThrowExceptionOnReadData(boolean value) { this.throwExceptionOnReadData = value; } } @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); when(mockConfig.getMaximumBufferSize()).thenReturn(65535); when(mockConfig.getPid()).thenReturn(1234); response = new TestSmbComTransactionResponse(mockConfig); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2EchoResponseTest.java
private Configuration mockConfig; @Mock private Smb2SigningDigest mockDigest; private Smb2EchoResponse echoResponse; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); echoResponse = new Smb2EchoResponse(mockConfig); } @Nested @DisplayName("Constructor Tests") class ConstructorTests { @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java
class Smb2LockResponseTest { @Mock private Configuration mockConfig; private Smb2LockResponse response; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); response = new Smb2LockResponse(mockConfig); } @Test @DisplayName("Constructor should initialize with Configuration") void testConstructor() { // Given & When
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.1K bytes - Viewed (0) -
src/test/java/jcifs/FileNotifyInformationTest.java
@TestInstance(TestInstance.Lifecycle.PER_CLASS) public class FileNotifyInformationTest { @Mock private FileNotifyInformation mockFileNotifyInfo; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); } @Nested @DisplayName("Filter Flags Constants Tests") class FilterFlagsTests { @Test @DisplayName("Verify FILE_NOTIFY_CHANGE_FILE_NAME constant value")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lease/DirectoryLeasingIntegrationTest.java
private DirectoryLeaseManager directoryLeaseManager; private AutoCloseable mocks; @BeforeEach public void setUp() throws Exception { mocks = MockitoAnnotations.openMocks(this); when(context.getConfig()).thenReturn(config); when(config.isDirectoryNotificationsEnabled()).thenReturn(false); // Create real lease manager for integration testing
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 14.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescTest.java
private static final int SACL_SECURITY_INFORMATION = 0x00000008; private static final int ALL_SECURITY_INFORMATION = 0x0000000F; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); when(mockConfig.getTransactionBufferSize()).thenReturn(65535); } @Test @DisplayName("Test constructor initialization with basic parameters") void testConstructorBasic() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ServerMessageBlock2RequestTest.java
@Mock private ServerMessageBlock2Response mockResponse; private TestServerMessageBlock2Request testRequest; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); testRequest = new TestServerMessageBlock2Request(mockConfig); } @Nested @DisplayName("Constructor Tests") class ConstructorTests { @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.7K bytes - Viewed (0)