Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 291 - 300 of 975 for rock (0.03 seconds)

  1. impl/maven-core/src/test/java/org/apache/maven/internal/impl/DefaultSessionTest.java

    import org.junit.jupiter.api.Test;
    
    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertThrows;
    import static org.mockito.Mockito.mock;
    
    public class DefaultSessionTest {
    
        @Test
        void testRootDirectoryWithNull() {
            RepositorySystemSession rss = new DefaultRepositorySystemSession(h -> false);
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 2.6K bytes
    - Click Count (0)
  2. src/main/java/jcifs/internal/smb2/lock/Smb2LockRequest.java

        private byte[] fileId;
        private final Smb2Lock[] locks;
    
        /**
         * Constructs an SMB2 lock request with the specified parameters.
         *
         * @param config the configuration for this request
         * @param fileId the file identifier for the file to lock
         * @param locks the array of lock elements to apply
         */
        public Smb2LockRequest(final Configuration config, final byte[] fileId, final Smb2Lock[] locks) {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 3.8K bytes
    - Click Count (0)
  3. src/main/java/jcifs/internal/smb2/rdma/disni/DisniRdmaProvider.java

    import jcifs.internal.smb2.rdma.RdmaMemoryRegion;
    import jcifs.internal.smb2.rdma.RdmaProvider;
    
    /**
     * DiSNI RDMA provider for InfiniBand/RoCE networks.
     *
     * This provider uses the DiSNI (Direct Storage and Networking Interface)
     * library to provide high-performance RDMA operations over InfiniBand
     * and RoCE (RDMA over Converged Ethernet) networks.
     */
    public class DisniRdmaProvider implements RdmaProvider {
    
        /**
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sun Aug 24 00:12:28 GMT 2025
    - 5.2K bytes
    - Click Count (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);
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.5K bytes
    - Click Count (0)
  5. src/test/java/jcifs/internal/RequestWithPathTest.java

    import org.junit.jupiter.api.Test;
    import org.junit.jupiter.api.extension.ExtendWith;
    import org.mockito.Mock;
    import org.mockito.junit.jupiter.MockitoExtension;
    
    /**
     * Test class for RequestWithPath interface
     */
    @ExtendWith(MockitoExtension.class)
    class RequestWithPathTest {
    
        @Mock
        private RequestWithPath requestWithPath;
    
        private TestRequestWithPath testImplementation;
    
        @BeforeEach
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 12.2K bytes
    - Click Count (0)
  6. tests/test_route_scope.py

    
    client = TestClient(app)
    
    
    def test_get():
        response = client.get("/users/rick")
        assert response.status_code == 200, response.text
        assert response.json() == {"user_id": "rick", "path": "/users/{user_id}"}
    
    
    def test_invalid_method_doesnt_match():
        response = client.post("/users/rick")
        assert response.status_code == 405, response.text
    
    
    def test_invalid_path_doesnt_match():
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Sep 29 03:29:38 GMT 2025
    - 1.5K bytes
    - Click Count (0)
  7. 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;
    
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.3K bytes
    - Click Count (0)
  8. 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() {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7.2K bytes
    - Click Count (0)
  9. api/maven-api-core/src/test/java/org/apache/maven/api/SourceRootTest.java

        }
    
        @Test
        void testTargetPath() {
            Build build = mock(Build.class);
            when(build.getDirectory()).thenReturn("target");
            when(build.getOutputDirectory()).thenReturn("target/classes");
            when(build.getTestOutputDirectory()).thenReturn("target/test-classes");
    
            Project project = mock(Project.class);
            when(project.getBuild()).thenReturn(build);
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Sun Oct 26 17:22:14 GMT 2025
    - 2.9K bytes
    - Click Count (0)
  10. 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);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 4.1K bytes
    - Click Count (0)
Back to Top