- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 103 for openMocks (0.08 sec)
-
src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java
this.bytesRead = value; } public int getWordCount() { return wordCount; } } @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); when(mockConfig.getPid()).thenReturn(12345); } @Nested @DisplayName("Constructor Tests") class ConstructorTests { @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 36.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/NotifyResponseTest.java
} public void setVerifyFailed(boolean verifyFailed) { this.verifyFailed = verifyFailed; } } @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); // Setup mock notify information when(mockNotifyInfo1.getAction()).thenReturn(FileNotifyInformation.FILE_ACTION_ADDED); when(mockNotifyInfo1.getFileName()).thenReturn("test1.txt");Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 21.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/net/NetServerEnum2Test.java
@Mock private Configuration mockConfig; private NetServerEnum2 netServerEnum2; private Configuration realConfig; @BeforeEach void setUp() throws Exception { MockitoAnnotations.openMocks(this); // Use real configuration for most tests realConfig = new BaseConfiguration(false); // Mock configuration setup when(mockConfig.getTransactionBufferSize()).thenReturn(65535); }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/AndXServerMessageBlockTest.java
return 34; // Return proper word count for extended response } } @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); when(mockConfig.isUseBatching()).thenReturn(true); } @Test @DisplayName("Test constructor with andx command") void testConstructorWithAndx() {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.4K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NameServicePacketTest.java
addrEntry[addrIndex] = new NbtAddress(dummyName, 0, false, NbtAddress.B_NODE); return 6; // NbtAddress is 6 bytes } } @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); packet = new TestNameServicePacket(mockConfig); packet.questionName = mockQuestionName; packet.recordName = mockRecordName; } @Test void testWriteInt2() {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/net/NetShareEnumTest.java
@Mock private Configuration mockConfig; private NetShareEnum netShareEnum; private Configuration realConfig; @BeforeEach void setUp() throws Exception { MockitoAnnotations.openMocks(this); // Use real configuration for most tests realConfig = new BaseConfiguration(false); // Mock configuration setup when(mockConfig.getTransactionBufferSize()).thenReturn(65535); }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtTransactionResponseTest.java
return len; } } @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); when(mockConfig.getPid()).thenReturn(1234); when(mockConfig.getMaximumBufferSize()).thenReturn(65535); when(mockConfig.getMinimumVersion()).thenReturn(DialectVersion.SMB1);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 16.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/AllocInfoTest.java
/** * Test suite for AllocInfo interface */ class AllocInfoTest { @Mock private AllocInfo mockAllocInfo; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); } /** * Test implementation class for AllocInfo interface */ static class TestAllocInfo implements AllocInfo { private final long capacity; private final long free;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ServerMessageBlock2ResponseTest.java
// Simple implementation for testing return 0; } } @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); when(mockConfig.isRequireSecureNegotiate()).thenReturn(false); response = new TestServerMessageBlock2Response(mockConfig); } @Nested @DisplayName("Constructor Tests")Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/SMB1SigningDigestTest.java
@Mock private ServerMessageBlock mockResponse; @Mock private TimeZone mockTimeZone; private byte[] testMacSigningKey; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); testMacSigningKey = new byte[] { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10 }; } @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0)