Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 99 for openMocks (0.07 sec)

  1. 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)
  2. 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)
  3. 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)
  4. src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryRequestTest.java

        private Configuration mockConfig;
    
        @Mock
        private CIFSContext mockContext;
    
        private Smb2QueryDirectoryRequest request;
    
        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
            when(mockConfig.getMaximumBufferSize()).thenReturn(65536);
            when(mockConfig.getListSize()).thenReturn(65536);
            when(mockContext.getConfig()).thenReturn(mockConfig);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/com/SmbComRenameTest.java

        private Configuration config;
        private SmbComRename smbComRename;
    
        @Mock
        private Configuration mockConfig;
    
        @BeforeEach
        public void setUp() throws CIFSException {
            MockitoAnnotations.openMocks(this);
            config = new PropertyConfiguration(new Properties());
        }
    
        /**
         * Test constructor initialization with valid parameters
         */
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  6. 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");
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/SMBSigningDigestTest.java

        private CommonServerMessageBlock response;
    
        @Mock
        private CommonServerMessageBlock message;
    
        private byte[] testData;
    
        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
            testData = new byte[] { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 };
        }
    
        @Test
        @DisplayName("Test sign method with valid parameters")
        void testSignWithValidParameters() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top