Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 813 for rock (0.05 sec)

  1. guava/src/com/google/common/util/concurrent/Monitor.java

        }
        ReentrantLock lock = this.lock;
        lock.lock();
    
        boolean satisfied = false;
        try {
          return satisfied = guard.isSatisfied();
        } finally {
          if (!satisfied) {
            lock.unlock();
          }
        }
      }
    
      /**
       * Enters this monitor if the guard is satisfied. Blocks at most the given time acquiring the
       * lock, but does not wait for the guard to be satisfied.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 42.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/dcerpc/msrpc/MsrpcLookupSidsTest.java

        }
    
        @Test
        void constructor_shouldHandleMultipleSids() {
            // Arrange
            jcifs.SID mockSid1 = mock(jcifs.SID.class);
            jcifs.SID mockSid2 = mock(jcifs.SID.class);
            jcifs.SID mockSid3 = mock(jcifs.SID.class);
            when(mockSid1.unwrap(sid_t.class)).thenReturn(mockSidT);
            when(mockSid2.unwrap(sid_t.class)).thenReturn(mockSidT);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/exec/ThumbnailGeneratorTest.java

                // Mock implementation
            };
            generator.searchEngineClient = mockClient;
            assertEquals(mockClient, generator.searchEngineClient);
        }
    
        // Helper methods for setting up mock components
        private void setupMockComponents() {
            try {
                // Register mock system properties
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/Smb2SigningDigestTest.java

                data = new byte[128];
                Arrays.fill(data, (byte) 0x00);
    
                // Set up mock messages
                request = mock(CommonServerMessageBlock.class);
                response = mock(CommonServerMessageBlock.class);
            }
    
            @Test
            @DisplayName("Should sign data correctly with zero signature field")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 43.7K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/SmbBasicFileInfoTest.java

            // Arrange: mock and stub each getter with distinct values
            SmbBasicFileInfo mock = Mockito.mock(SmbBasicFileInfo.class);
            Mockito.when(mock.getAttributes()).thenReturn(7);
            Mockito.when(mock.getCreateTime()).thenReturn(11L);
            Mockito.when(mock.getLastWriteTime()).thenReturn(13L);
            Mockito.when(mock.getLastAccessTime()).thenReturn(17L);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/job/SuggestJobTest.java

            public void start() {
                // Mock implementation
            }
    
            // Custom join method to avoid overriding final Thread.join()
            public void waitForCompletion(long millis) {
                // Mock implementation
            }
    
            @Override
            public String getOutput() {
                return output;
            }
        }
    
        // Mock Process implementation
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 31.4K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/filter/WebApiFilterTest.java

            assertTrue(true);
        }
    
        // Test doFilter when WebApiManagerFactory returns null WebApiManager
        public void test_doFilter_withNullWebApiManager() throws IOException, ServletException {
            // Setup mock objects
            HttpServletRequest request = createMockHttpServletRequest();
            HttpServletResponse response = createMockHttpServletResponse();
            AtomicBoolean chainCalled = new AtomicBoolean(false);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 26.2K bytes
    - Viewed (0)
  8. src/test/java/jcifs/SmbTreeHandleTest.java

     * This test class uses Mockito to create a mock implementation of the SmbTreeHandle interface.
     * Each method of the interface is tested to ensure it behaves as expected.
     */
    @ExtendWith(MockitoExtension.class)
    @MockitoSettings(strictness = Strictness.LENIENT)
    class SmbTreeHandleTest {
    
        @Mock
        private SmbTreeHandle smbTreeHandle;
    
        @Mock
        private Configuration mockConfig;
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  9. src/test/java/jcifs/SmbSessionTest.java

                SmbSession mockSession = mock(SmbSession.class);
                Configuration mockConfig = mock(Configuration.class);
    
                // Only mock getConfig, leave others with default behavior
                when(mockSession.getConfig()).thenReturn(mockConfig);
    
                assertEquals(mockConfig, mockSession.getConfig());
                assertNull(mockSession.getContext()); // Default mock behavior
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

        }
    
        static TestCondition create() {
          Lock lock = new ReentrantLock();
          Condition condition = lock.newCondition();
          return new TestCondition(lock, condition);
        }
    
        @Override
        public void await() throws InterruptedException {
          lock.lock();
          try {
            condition.await();
          } finally {
            lock.unlock();
          }
        }
    
        @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 31.7K bytes
    - Viewed (0)
Back to top