Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 99 for openMocks (0.03 sec)

  1. src/test/java/jcifs/MsrpcEnumerateAliasesInDomainTest.java

        @Mock
        private SamrDomainHandle mockDomainHandle;
        @Mock
        private samr.SamrSamArray mockSamArray;
    
        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
        }
    
        @Test
        void constructor_shouldInitializeFieldsCorrectly() {
            // Given
            int acctFlags = 123;
    
            // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/dcerpc/msrpc/SamrAliasHandleTest.java

    class SamrAliasHandleTest {
    
        @Mock
        private DcerpcHandle mockDcerpcHandle;
        @Mock
        private SamrDomainHandle mockSamrDomainHandle;
    
        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
        }
    
        @Test
        void constructor_shouldOpenAliasSuccessfully() throws IOException {
            // Arrange
            int access = 1;
            int rid = 100;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/TransTransactNamedPipeResponseTest.java

        @InjectMocks
        private TransTransactNamedPipeResponse response;
    
        @BeforeEach
        void setUp() {
            // Initialize mocks created above
            MockitoAnnotations.openMocks(this);
            // We need to manually inject the mock as we are not using @InjectMocks on the constructor
            response = new TransTransactNamedPipeResponse(mockPipe);
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/dcerpc/msrpc/MsrpcEnumerateAliasesInDomainTest.java

        @Mock
        private SamrDomainHandle mockDomainHandle;
    
        @Mock
        private SamrSamArray mockSamArray;
    
        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
        }
    
        /**
         * Test method for
         * {@link MsrpcEnumerateAliasesInDomain#MsrpcEnumerateAliasesInDomain(SamrDomainHandle, int, SamrSamArray)}.
         */
        @Test
        void testConstructor() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/MsrpcGetMembersInAliasTest.java

    class MsrpcGetMembersInAliasTest {
    
        @Mock
        private SamrAliasHandle mockAliasHandle;
    
        @Mock
        private lsarpc.LsarSidArray mockSids;
    
        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
        }
    
        @Test
        @DisplayName("Should correctly initialize MsrpcGetMembersInAlias with provided parameters")
        void testConstructorInitialization() {
            // Given
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/dcerpc/msrpc/MsrpcSamrCloseHandleTest.java

    import jcifs.dcerpc.rpc.policy_handle;
    
    class MsrpcSamrCloseHandleTest {
    
        @Mock
        private policy_handle mockPolicyHandle;
    
        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
        }
    
        @Test
        void constructorShouldInitializeCorrectly() {
            // Given
            // mockPolicyHandle is already mocked by @Mock and initialized by @BeforeEach
    
            // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/dcerpc/msrpc/MsrpcLsarOpenPolicy2Test.java

    import org.mockito.MockitoAnnotations;
    
    class MsrpcLsarOpenPolicy2Test {
    
        @Mock
        private LsaPolicyHandle mockPolicyHandle;
    
        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
        }
    
        @Test
        void constructor_shouldInitializeFieldsCorrectly() {
            // Given
            String server = "testServer";
            int access = 0x00000001; // Example access value
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/dcerpc/DcerpcSecurityProviderTest.java

        @Mock
        private NdrBuffer mockNdrBuffer;
    
        @BeforeEach
        void setUp() {
            // Initialize mocks before each test
            MockitoAnnotations.openMocks(this);
        }
    
        @Test
        void testWrapMethodIsCalled() throws DcerpcException {
            // Test that the wrap method can be called without throwing an exception
            dcerpcSecurityProvider.wrap(mockNdrBuffer);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/MsrpcLsarCloseTest.java

    import jcifs.dcerpc.msrpc.MsrpcLsarClose;
    
    class MsrpcLsarCloseTest {
    
        @Mock
        private policy_handle mockPolicyHandle;
    
        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
        }
    
        @Test
        void testConstructor() {
            // Create an instance of MsrpcLsarClose
            MsrpcLsarClose msrpcLsarClose = new MsrpcLsarClose(mockPolicyHandle);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeResponseTest.java

        @Mock
        private Configuration mockConfig;
    
        private TransTransactNamedPipeResponse response;
        private byte[] outputBuffer;
    
        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
            outputBuffer = new byte[1024];
            response = new TransTransactNamedPipeResponse(mockConfig, outputBuffer);
        }
    
        @Test
        void testConstructor() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.5K bytes
    - Viewed (0)
Back to top