- Sort Score
- Num 10 results
- Language All
Results 61 - 70 of 100 for openMocks (0.15 seconds)
-
src/test/java/jcifs/netbios/SessionRequestPacketTest.java
private Configuration mockConfig; @Mock private NetbiosName mockCalledName; @Mock private NetbiosName mockCallingName; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); when(mockConfig.getNetbiosScope()).thenReturn(null); // Configure OEM encoding to avoid NullPointerException when(mockConfig.getOemEncoding()).thenReturn("UTF-8"); } @TestCreated: 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/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")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/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() {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 13.9K bytes - Click Count (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 testingCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 23 01:47:47 GMT 2025 - 14.2K bytes - Click Count (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 { @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.7K bytes - Click Count (0) -
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];Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.7K bytes - Click Count (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() { // AssertCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 14.1K bytes - Click Count (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 { @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.1K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans/nt/NtTransNotifyChangeResponseTest.java
class NtTransNotifyChangeResponseTest { @Mock private Configuration mockConfig; private NtTransNotifyChangeResponse response; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); response = new NtTransNotifyChangeResponse(mockConfig); } @Test @DisplayName("Test constructor creates instance with empty notification list") void testConstructor() {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 14.7K bytes - Click Count (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 & WhenCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 17.1K bytes - Click Count (0)