Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 61 - 70 of 83 for openMocks (0.06 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. src/test/java/jcifs/internal/smb1/trans/TransPeekNamedPipeResponseTest.java

     */
    class TransPeekNamedPipeResponseTest {
    
        @Mock
        private Configuration mockConfig;
    
        private TransPeekNamedPipeResponse response;
    
        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
            response = new TransPeekNamedPipeResponse(mockConfig);
        }
    
        @Test
        @DisplayName("Constructor should initialize TransPeekNamedPipeResponse")
        void testConstructor() {
            // Assert
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 15.8K bytes
    - Click Count (0)
  2. 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);
        }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 15.8K bytes
    - Click Count (0)
  3. 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);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 16.3K bytes
    - Click Count (0)
  4. 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;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 18.8K bytes
    - Click Count (0)
  5. 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")
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 19.3K bytes
    - Click Count (0)
  6. 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
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 20.3K bytes
    - Click Count (0)
  7. 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
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 20.6K bytes
    - Click Count (0)
  8. 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
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 15.4K bytes
    - Click Count (0)
  9. 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;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 18.1K bytes
    - Click Count (0)
  10. 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() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 15.5K bytes
    - Click Count (0)
Back to Top