Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 91 - 100 of 975 for rock (0.08 seconds)

  1. compat/maven-compat/src/test/java/org/apache/maven/toolchain/DefaultToolchainManagerTest.java

    import static org.mockito.Mockito.mock;
    import static org.mockito.Mockito.never;
    import static org.mockito.Mockito.verify;
    import static org.mockito.Mockito.when;
    
    class DefaultToolchainManagerTest {
        // Mocks to inject into toolchainManager
        @Mock
        private Logger logger;
    
        private ToolchainManagerFactory.DefaultToolchainManagerV3 toolchainManager;
    
        @Mock
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Mar 21 04:56:21 GMT 2025
    - 11K bytes
    - Click Count (0)
  2. cmd/metacache-walk.go

    func (s *xlStorage) WalkDir(ctx context.Context, opts WalkDirOptions, wr io.Writer) (err error) {
    	legacyFS := s.fsType != xfs && s.fsType != ext4
    
    	s.RLock()
    	legacy := s.formatLegacy
    	s.RUnlock()
    
    	// Verify if volume is valid and it exists.
    	volumeDir, err := s.getVolDir(opts.Bucket)
    	if err != nil {
    		return err
    	}
    
    	if !skipAccessChecks(opts.Bucket) {
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Mon May 26 07:06:43 GMT 2025
    - 12.6K bytes
    - Click Count (0)
  3. src/test/java/jcifs/NameServiceClientTest.java

        }
    
        @Test
        void testGetNbtAllByAddress_NetbiosAddress() throws UnknownHostException {
            // Arrange
            NetbiosAddress inputAddress = mock(NetbiosAddress.class);
            NetbiosAddress[] expectedAddresses = { mock(NetbiosAddress.class), mock(NetbiosAddress.class) };
            when(nameServiceClient.getNbtAllByAddress(inputAddress)).thenReturn(expectedAddresses);
    
            // Act
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 15.4K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/util/concurrent/DirectExecutorService.java

       */
      @GuardedBy("lock")
      private int runningTasks = 0;
    
      @GuardedBy("lock")
      private boolean shutdown = false;
    
      @Override
      public void execute(Runnable command) {
        startTask();
        try {
          command.run();
        } finally {
          endTask();
        }
      }
    
      @Override
      public boolean isShutdown() {
        synchronized (lock) {
          return shutdown;
        }
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Dec 16 14:23:59 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  5. src/main/java/jcifs/internal/smb2/lease/DirectoryCacheEntry.java

                }
            } finally {
                lock.writeLock().unlock();
            }
        }
    
        /**
         * Remove a child entry
         *
         * @param childName child file name
         */
        public void removeChild(String childName) {
            lock.writeLock().lock();
            try {
                if (children.remove(childName) != null) {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 23 02:21:31 GMT 2025
    - 11.4K bytes
    - Click Count (0)
  6. guava/src/com/google/common/util/concurrent/AbstractScheduledService.java

         * always under a lock.
         */
        private static final class SupplantableFuture implements Cancellable {
          private final ReentrantLock lock;
    
          @GuardedBy("lock")
          private Future<@Nullable Void> currentFuture;
    
          SupplantableFuture(ReentrantLock lock, Future<@Nullable Void> currentFuture) {
            this.lock = lock;
            this.currentFuture = currentFuture;
          }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 27.8K bytes
    - Click Count (0)
  7. src/test/java/jcifs/internal/NotifyResponseTest.java

     */
    class NotifyResponseTest {
    
        @Mock
        private Configuration mockConfig;
    
        @Mock
        private FileNotifyInformation mockNotifyInfo1;
    
        @Mock
        private FileNotifyInformation mockNotifyInfo2;
    
        @Mock
        private CommonServerMessageBlockRequest mockRequest;
    
        /**
         * Mock implementation of NotifyResponse for testing interface behavior
         */
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 21.2K bytes
    - Click Count (0)
  8. src/test/java/jcifs/smb/DfsImplTest.java

        @BeforeEach
        void setUp() throws IOException {
            // Mock the CIFSContext and its dependencies
            mockContext = mock(CIFSContext.class);
            mockConfig = mock(Configuration.class);
            mockCredentials = mock(Credentials.class);
            mockTransportPool = mock(SmbTransportPool.class);
    
            // Set up mock behaviors
            when(mockContext.getConfig()).thenReturn(mockConfig);
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.5K bytes
    - Click Count (0)
  9. tests/test_dependency_yield_except_httpexception.py

        assert state["finally"] is False
        response = client.put("/invalid-user/rick", json="Morty")
        assert response.status_code == 400, response.text
        assert response.json() == {"detail": "Invalid user"}
        assert state["except"] is True
        assert state["finally"] is True
        assert fake_database["rick"] == "Rick Sanchez"
    
    
    def test_dependency_no_exception():
        assert state["except"] is False
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Sep 29 03:29:38 GMT 2025
    - 1.9K bytes
    - Click Count (0)
  10. src/test/java/jcifs/http/NtlmServletTest.java

        private TestNtlmServlet ntlmServlet;
    
        @Mock
        private ServletConfig servletConfig;
    
        @Mock
        private HttpServletRequest request;
    
        @Mock
        private HttpServletResponse response;
    
        @Mock
        private HttpSession session;
    
        @Mock
        private CIFSContext cifsContext;
    
        @Mock
        private Configuration configuration;
    
        @Mock
        private jcifs.SmbTransportPool transportPool;
    
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 21 04:51:33 GMT 2025
    - 11.5K bytes
    - Click Count (0)
Back to Top