Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 594 for sock (0.38 sec)

  1. 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)
  2. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessUserLocaleProcessProviderTest.java

        public void test_findBusinessLocale_withValidLocale() {
            // Setup mock config
            FessConfig mockConfig = new FessConfig.SimpleImpl() {
                @Override
                public String getQueryBrowserLangParameterName() {
                    return "lang";
                }
            };
            ComponentUtil.setFessConfig(mockConfig);
    
            // Setup mock request manager
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 11K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/helper/WebFsIndexHelperTest.java

                assertTrue(true);
            }
        }
    
        public void test_crawl_withWebConfigOnly() {
            List<String> webConfigIds = Arrays.asList("webConfig1", "webConfig2");
    
            // Mock CrawlingConfigHelper
            CrawlingConfigHelper crawlingConfigHelper = new CrawlingConfigHelper() {
                @Override
                public List<WebConfig> getWebConfigListByIds(List<String> webConfigIdList) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 10 13:41:04 UTC 2025
    - 15.2K bytes
    - Viewed (0)
  4. android/guava-tests/benchmark/com/google/common/util/concurrent/CycleDetectingLockFactoryBenchmark.java

        for (int i = 0; i < reps; i++) {
          lock.lock();
          lock.unlock();
        }
      }
    
      @Benchmark
      void orderedPlainLocks(int reps) {
        lockAndUnlockNested(plainLocks, reps);
      }
    
      @Benchmark
      void orderedCycleDetectingLocks(int reps) {
        lockAndUnlockNested(detectingLocks, reps);
      }
    
      private static void lockAndUnlockNested(Lock[] locks, int reps) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  5. guava/src/com/google/common/util/concurrent/Striped.java

         * error-prone code like:
         *
         * Striped<Lock> stripedLock = Striped.lazyWeakXXX(...)'
         * Iterable<Lock> locks = stripedLock.bulkGet(keys);
         * for (Lock lock : locks) {
         *   lock.lock();
         * }
         * operation();
         * for (Lock lock : locks) {
         *   lock.unlock();
         * }
         *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 20.6K bytes
    - Viewed (0)
  6. 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)
  7. src/test/java/jcifs/smb/DfsReferralTest.java

            // Create a mock DfsReferralData object
            DfsReferralData mockData = mock(DfsReferralData.class);
            String expectedToString = "Mock DfsReferralData";
    
            // Define the behavior of the mock's toString() method
            when(mockData.toString()).thenReturn(expectedToString);
    
            // Create a DfsReferral instance with the mock data
            DfsReferral dfsReferral = new DfsReferral(mockData);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/FileEntryAdapterIteratorTest.java

    class FileEntryAdapterIteratorTest {
    
        @Mock
        private CloseableIterator<FileEntry> delegate;
    
        @Mock
        private ResourceFilter filter;
    
        @Mock
        private SmbResource parent;
    
        @Mock
        private SmbResource resource;
    
        @Mock
        private FileEntry fileEntry;
    
        /**
         * Test implementation that always returns the same mock resource
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top