Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 166 for Locks (0.03 sec)

  1. src/test/java/jcifs/util/transport/RequestTest.java

    import org.mockito.Mock;
    import org.mockito.MockitoAnnotations;
    
    class RequestTest {
    
        @Mock
        private Request mockRequest;
    
        @BeforeEach
        void setUp() {
            // Initialize mocks before each test
            MockitoAnnotations.openMocks(this);
        }
    
        @Test
        void testGetCreditCost() {
            // Test case for getCreditCost method
            int expectedCreditCost = 10;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  2. api/go1.13.txt

    pkg syscall (netbsd-arm64-cgo), type RtMetrics struct, Expire int64
    pkg syscall (netbsd-arm64-cgo), type RtMetrics struct, Hopcount uint64
    pkg syscall (netbsd-arm64-cgo), type RtMetrics struct, Locks uint64
    pkg syscall (netbsd-arm64-cgo), type RtMetrics struct, Mtu uint64
    pkg syscall (netbsd-arm64-cgo), type RtMetrics struct, Pksent int64
    pkg syscall (netbsd-arm64-cgo), type RtMetrics struct, Recvpipe uint64
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Thu Aug 08 18:44:16 UTC 2019
    - 452.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbTreeInternalTest.java

    import jcifs.CIFSContext;
    import jcifs.CIFSException;
    import jcifs.SmbTree;
    import jcifs.internal.CommonServerMessageBlockResponse;
    import jcifs.internal.Request;
    
    /**
     * Tests for SmbTreeInternal interface behavior via mocks.
     * Since this is an interface, we validate its public API contract
     * through interaction testing and generic type usage.
     */
    @ExtendWith(MockitoExtension.class)
    class SmbTreeInternalTest {
    
        @Mock
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/witness/WitnessClientTest.java

    import jcifs.CIFSContext;
    import jcifs.Configuration;
    import jcifs.internal.witness.WitnessRegistration.WitnessRegistrationState;
    
    /**
     * Unit tests for WitnessClient class using mocks.
     */
    @ExtendWith(MockitoExtension.class)
    public class WitnessClientTest {
    
        @Mock
        private CIFSContext mockContext;
    
        @Mock
        private Configuration mockConfig;
    
        @Mock
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/NetServerFileEntryAdapterIteratorTest.java

            this.ctx = SingletonContext.getInstance();
        }
    
        private void setupParentForUrlCreation() throws CIFSException {
            // Only set up parent mocks when they're actually needed for URL creation
            when(parent.getContext()).thenReturn(this.ctx);
            when(parent.getLocator()).thenReturn(parentLocator);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/dcerpc/msrpc/SamrPolicyHandleTest.java

    import jcifs.smb.SmbException;
    
    @ExtendWith(MockitoExtension.class)
    class SamrPolicyHandleTest {
    
        @Mock
        private DcerpcHandle mockHandle;
    
        @BeforeEach
        void setUp() {
            // Reset mocks before each test
            reset(mockHandle);
        }
    
        @Test
        void testConstructor_SuccessfulConnect4() throws IOException {
            // Test case: Constructor with successful MsrpcSamrConnect4
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/dcerpc/ndr/NdrShortTest.java

                // Given: Original value that fits in byte range
                int originalValue = 150;
                NdrShort ndrShort1 = new NdrShort(originalValue);
    
                // Create separate mocks for encoding and decoding to simulate real buffer
                NdrBuffer encodeBuffer = mock(NdrBuffer.class);
                NdrBuffer decodeBuffer = mock(NdrBuffer.class);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  8. src/test/java/jcifs/dcerpc/msrpc/SamrDomainHandleTest.java

        // Use ArgumentCaptor to capture the MsrpcSamrCloseHandle instance passed to sendrecv
        private ArgumentCaptor<MsrpcSamrCloseHandle> closeHandleCaptor;
    
        @BeforeEach
        void setUp() {
            // Initialize mocks and captors before each test
            MockitoAnnotations.openMocks(this);
            openDomainCaptor = ArgumentCaptor.forClass(MsrpcSamrOpenDomain.class);
            closeHandleCaptor = ArgumentCaptor.forClass(MsrpcSamrCloseHandle.class);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  9. CHANGELOG/CHANGELOG-1.20.md

    - github.com/Azure/go-autorest/autorest/mocks: [v0.3.0 → v0.4.1](https://github.com/Azure/go-autorest/compare/autorest/mocks/v0.3.0...autorest/mocks/v0.4.1)
    - github.com/Azure/go-autorest/autorest: [v0.9.6 → v0.11.1](https://github.com/Azure/go-autorest/compare/autorest/v0.9.6...autorest/v0.11.1)
    Registered: Fri Sep 05 09:05:11 UTC 2025
    - Last Modified: Wed Jan 19 21:05:45 UTC 2022
    - 409K bytes
    - Viewed (0)
  10. mockwebserver/README.md

    awkward-to-reproduce situations like 500 errors or slow-loading responses.
    
    
    ### Example
    
    Use MockWebServer the same way that you use mocking frameworks like
    [Mockito](https://github.com/mockito/mockito):
    
    1. Script the mocks.
    2. Run application code.
    3. Verify that the expected requests were made.
    
    Here's a complete example:
    
    ### Java
    ```java
    public void test() throws Exception {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jul 19 13:40:52 UTC 2025
    - 8.1K bytes
    - Viewed (0)
Back to top