Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 99 for openMocks (0.18 sec)

  1. src/test/java/jcifs/internal/SmbNegotiationTest.java

        private byte[] testRequestBuffer;
        private byte[] testResponseBuffer;
        private SmbNegotiation negotiation;
    
        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
            testRequestBuffer = new byte[] { 0x01, 0x02, 0x03, 0x04 };
            testResponseBuffer = new byte[] { 0x05, 0x06, 0x07, 0x08 };
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/CommonServerMessageBlockResponseTest.java

        @Mock
        private CommonServerMessageBlockRequest request;
    
        @Mock
        private SMBSigningDigest digest;
    
        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
        }
    
        @Test
        @DisplayName("Test isAsync method returning true")
        void testIsAsyncTrue() {
            // Given
            when(response.isAsync()).thenReturn(true);
    
            // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralTest.java

    class Trans2GetDfsReferralTest {
    
        @Mock
        private Configuration mockConfig;
    
        private Trans2GetDfsReferral trans2GetDfsReferral;
    
        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
        }
    
        @Test
        @DisplayName("Constructor should initialize with correct values")
        void testConstructor() throws Exception {
            // Given
            String filename = "\\\\server\\share\\file.txt";
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/Smb2EchoRequestTest.java

        @Mock
        private Configuration mockConfig;
    
        @Mock
        private CIFSContext mockContext;
    
        private Smb2EchoRequest echoRequest;
    
        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
            when(mockContext.getConfig()).thenReturn(mockConfig);
            echoRequest = new Smb2EchoRequest(mockConfig);
        }
    
        @Nested
        @DisplayName("Constructor Tests")
        class ConstructorTests {
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  5. 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 {
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationTest.java

        private static final String TEST_FILENAME = "test/file.txt";
        private static final int TEST_INFO_LEVEL = FileInformation.FILE_BASIC_INFO;
    
        @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.4K bytes
    - Viewed (0)
  7. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  8. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.7K bytes
    - Viewed (0)
  9. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  10. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.8K bytes
    - Viewed (0)
Back to top