Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 99 for openMocks (0.03 sec)

  1. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  2. 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 };
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationTest.java

        private Configuration config;
    
        @Mock
        private Configuration mockConfig;
    
        @BeforeEach
        void setUp() throws Exception {
            MockitoAnnotations.openMocks(this);
            Properties props = new Properties();
            config = new PropertyConfiguration(props);
        }
    
        @Test
        @DisplayName("Test constructor with SMB_INFO_ALLOCATION")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationTest.java

        private static final long TEST_LAST_WRITE_TIME = 131234567900000L;
        private static final long TEST_LAST_ACCESS_TIME = 131234567880000L;
    
        @BeforeEach
        void setUp() throws Exception {
            MockitoAnnotations.openMocks(this);
            Properties props = new Properties();
            config = new PropertyConfiguration(props);
        }
    
        @Test
        @DisplayName("Test constructor with FileInformation parameter")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/netbios/SessionServicePacketTest.java

    class SessionServicePacketTest {
    
        private TestSessionServicePacket packet;
    
        @Mock
        private InputStream mockInputStream;
    
        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
            packet = new TestSessionServicePacket();
        }
    
        // Tests for static methods
    
        @Test
        @DisplayName("writeInt2 should correctly write 16-bit integer")
        void testWriteInt2() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  6. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  7. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java

        @Mock
        private CIFSContext mockContext;
    
        private byte[] testFileId;
        private Smb2WriteRequest request;
    
        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
            when(mockContext.getConfig()).thenReturn(mockConfig);
    
            testFileId = new byte[16];
            new SecureRandom().nextBytes(testFileId);
            request = new Smb2WriteRequest(mockConfig, testFileId);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/lock/Smb2LockRequestTest.java

        @Mock
        private Smb2Lock mockLock;
    
        private byte[] testFileId;
        private Smb2Lock[] testLocks;
        private Smb2LockRequest request;
    
        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
            when(mockContext.getConfig()).thenReturn(mockConfig);
    
            testFileId = new byte[16];
            new SecureRandom().nextBytes(testFileId);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 25.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/fscc/FileBothDirectoryInfoTest.java

        private FileBothDirectoryInfo fileBothDirectoryInfo;
        private FileBothDirectoryInfo fileBothDirectoryInfoNonUnicode;
    
        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
            // Mock the OEM encoding for non-Unicode tests
            when(mockConfig.getOemEncoding()).thenReturn("Cp850");
            fileBothDirectoryInfo = new FileBothDirectoryInfo(mockConfig, true);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.9K bytes
    - Viewed (0)
Back to top