Search Options

Results per page
Sort
Preferred Languages
Advance

Results 171 - 180 of 784 for mock (0.02 sec)

  1. src/test/java/jcifs/smb1/dcerpc/msrpc/LsaPolicyHandleTest.java

    import org.junit.jupiter.api.Test;
    import org.junit.jupiter.api.extension.ExtendWith;
    import org.mockito.Mock;
    import org.mockito.junit.jupiter.MockitoExtension;
    
    import jcifs.smb1.dcerpc.DcerpcHandle;
    import jcifs.smb1.smb1.SmbException;
    
    @ExtendWith(MockitoExtension.class)
    class LsaPolicyHandleTest {
    
        @Mock
        private DcerpcHandle mockDcerpcHandle;
    
        @BeforeEach
        void setUp() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/dcerpc/ndr/NdrHyperTest.java

    package jcifs.smb1.dcerpc.ndr;
    
    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertThrows;
    import static org.mockito.Mockito.mock;
    import static org.mockito.Mockito.times;
    import static org.mockito.Mockito.verify;
    import static org.mockito.Mockito.when;
    
    import org.junit.jupiter.api.DisplayName;
    import org.junit.jupiter.api.Test;
    import org.junit.jupiter.api.extension.ExtendWith;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/io/CloseablesTest.java

        // 'swallowException' when the mock does not throw an exception.
        setupCloseable(false);
        doClose(mockCloseable, false, false);
    
        setupCloseable(false);
        doClose(mockCloseable, true, false);
      }
    
      public void testClose_closeableWithEatenException() throws IOException {
        // make sure that no exception is thrown if 'swallowException' is true
        // when the mock does throw an exception.
        setupCloseable(true);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/create/Smb2CreateResponseTest.java

            CommonServerMessageBlockRequest next =
                    mock(CommonServerMessageBlockRequest.class, withSettings().extraInterfaces(RequestWithFileId.class));
    
            resp.prepare(next);
    
            verify((RequestWithFileId) next, times(1)).setFileId(eq(fileId));
        }
    
        @Test
        void prepare_doesNothing_whenNotReceived() {
            Configuration config = Mockito.mock(Configuration.class);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/dcerpc/msrpc/srvsvcTest.java

    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.Test;
    import org.mockito.Mock;
    import org.mockito.MockitoAnnotations;
    
    import jcifs.dcerpc.ndr.NdrBuffer;
    import jcifs.dcerpc.ndr.NdrException;
    
    /**
     * Test class for srvsvc.java classes
     */
    class srvsvcTest {
    
        @Mock
        private NdrBuffer mockNdrBuffer;
    
        @Mock
        private NdrBuffer mockDeferredBuffer;
    
        @BeforeEach
        void setUp() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12K bytes
    - Viewed (0)
  6. src/test/java/jcifs/CloseableIteratorTest.java

    import static org.mockito.Mockito.verify;
    
    import org.junit.jupiter.api.DisplayName;
    import org.junit.jupiter.api.Test;
    import org.mockito.Mock;
    
    /**
     * Test class for CloseableIterator interface functionality
     */
    @DisplayName("CloseableIterator Tests")
    class CloseableIteratorTest extends BaseTest {
    
        @Mock
        private CloseableIterator<SmbResource> mockIterator;
    
        @Test
        @DisplayName("Should define close method")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 964 bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/UncaughtExceptionHandlersTest.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.util.concurrent;
    
    import static org.mockito.Mockito.mock;
    import static org.mockito.Mockito.verify;
    
    import com.google.common.util.concurrent.UncaughtExceptionHandlers.Exiter;
    import com.google.common.util.concurrent.UncaughtExceptionHandlers.RuntimeWrapper;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Feb 10 21:03:40 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/SIDTest.java

         */
        @Test
        void testGetGroupMemberSids() throws IOException, SmbException {
            CIFSContext mockContext = mock(CIFSContext.class);
            SidResolver mockResolver = mock(SidResolver.class);
            when(mockContext.getSIDResolver()).thenReturn(mockResolver);
    
            // Create a mock RPC SID to simulate a domain group SID
            rpc.sid_t rpcSid = new rpc.sid_t();
            rpcSid.revision = 1;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.5K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/exec/SuggestCreatorTest.java

                        // Mock implementation
                    }
                };
                ComponentUtil.register(mockProperties, "systemProperties");
    
                // Register mock system helper
                SystemHelper mockSystemHelper = new SystemHelper() {
                    @Override
                    public void updateSystemProperties() {
                        // Mock implementation
                    }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SmbTreeHandleInternalTest.java

    import org.mockito.InOrder;
    import org.mockito.Mock;
    import org.mockito.junit.jupiter.MockitoExtension;
    
    import jcifs.CIFSException;
    import jcifs.SmbSession;
    
    /**
     * Tests for SmbTreeHandleInternal interface using Mockito to verify
     * interactions and observable behavior of collaborators.
     */
    @ExtendWith(MockitoExtension.class)
    public class SmbTreeHandleInternalTest {
    
        @Mock
        private SmbTreeHandleInternal handle;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
Back to top