Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 99 for openMocks (0.09 sec)

  1. 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)
  2. 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)
  3. src/test/java/jcifs/internal/dfs/DfsReferralResponseBufferTest.java

    /**
     * Test suite for DfsReferralResponseBuffer
     */
    class DfsReferralResponseBufferTest {
    
        private DfsReferralResponseBuffer buffer;
    
        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
            buffer = new DfsReferralResponseBuffer();
        }
    
        @Nested
        @DisplayName("Constructor and Initial State Tests")
        class ConstructorTests {
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/fscc/FileSystemInformationTest.java

     */
    class FileSystemInformationTest {
    
        @Mock
        private FileSystemInformation mockFileSystemInfo;
    
        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
        }
    
        /**
         * Test implementation class for FileSystemInformation interface
         */
        static class TestFileSystemInformation implements FileSystemInformation {
            private byte informationClass;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/SmbNegotiationResponseTest.java

        @Mock
        private CommonServerMessageBlock serverMessageBlock;
    
        @Mock
        private Response response;
    
        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
        }
    
        @Test
        @DisplayName("Test isValid returns true for valid negotiation")
        void testIsValidReturnsTrue() {
            // Arrange
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.6K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 16.3K bytes
    - Viewed (0)
Back to top