- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 99 for openMocks (1.38 sec)
-
src/test/java/jcifs/pac/kerberos/KerberosCredentialsTest.java
private static final int KEY_TYPE_1 = 1; private static final int KEY_TYPE_2 = 2; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); } /** * Test constructor with a valid login context. * * @throws LoginException if login fails. */ @Test void testConstructor_Success() throws LoginException {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7K bytes - Viewed (0) -
src/test/java/jcifs/NameServiceClientTest.java
import org.mockito.MockitoAnnotations; class NameServiceClientTest { @Mock private NameServiceClient nameServiceClient; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); } @Test void testGetLocalHost() { // Arrange NetbiosAddress expectedAddress = mock(NetbiosAddress.class);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationResponseTest.java
@Mock private Configuration mockConfig; private Trans2QueryPathInformationResponse response; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); } @Test @DisplayName("Test constructor with FILE_BASIC_INFO level") void testConstructorWithFileBasicInfo() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.9K bytes - Viewed (0) -
src/test/java/jcifs/context/CIFSContextCredentialWrapperTest.java
@Mock private NtlmPasswordAuthenticator mockNtlmPasswordAuthenticator; private CIFSContextCredentialWrapper wrapper; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); wrapper = new CIFSContextCredentialWrapper(mockDelegate, mockCredentials); } @Test @DisplayName("Should construct with delegate and credentials") void testConstructor() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2FindFirst2Test.java
class Trans2FindFirst2Test { @Mock private Configuration mockConfig; private Trans2FindFirst2 trans2FindFirst2; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); when(mockConfig.getMaximumBufferSize()).thenReturn(65535); when(mockConfig.getTransactionBufferSize()).thenReturn(65535); when(mockConfig.isUseUnicode()).thenReturn(true);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransWaitNamedPipeTest.java
private Configuration mockConfig; private TransWaitNamedPipe transWaitNamedPipe; private String testPipeName = "\\PIPE\\testpipe"; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); } @Test @DisplayName("Constructor should initialize with correct values") void testConstructor() { // Act transWaitNamedPipe = new TransWaitNamedPipe(mockConfig, testPipeName);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransPeekNamedPipeTest.java
private static final String TEST_PIPE_NAME = "\\PIPE\\testpipe"; private static final int TEST_FID = 0x1234; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); } @Test @DisplayName("Constructor should initialize with correct values") void testConstructor() { // Act
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2FindNext2Test.java
private static final int TEST_BATCH_COUNT = 100; private static final int TEST_BATCH_SIZE = 8192; @BeforeEach void setUp() throws Exception { MockitoAnnotations.openMocks(this); Properties props = new Properties(); config = new PropertyConfiguration(props); } @Test void testConstructor() { // Test constructor initializes all fields correctly
Registered: 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/smb1/smb1/SmbTreeTest.java
class SmbTreeTest { @Mock private SmbSession session; @Mock private SmbTransport transport; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); // Setup transport fields that are accessed directly transport.tconHostName = "testHost"; // Setup session.transport field (accessed directly in SmbTree) session.transport = transport;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 10.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescResponseTest.java
class NtTransQuerySecurityDescResponseTest { @Mock private Configuration mockConfig; private NtTransQuerySecurityDescResponse response; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); response = new NtTransQuerySecurityDescResponse(mockConfig); } @Test @DisplayName("Test constructor creates instance with null security descriptor") void testConstructor() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.8K bytes - Viewed (0)