Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 101 - 110 of 308 for teardown (0.12 seconds)

  1. android/guava-tests/benchmark/com/google/common/cache/LoadingCacheSingleThreadBenchmark.java

         * part, so higher integers would appear (in this case linearly) more often
         * than lower ones.
         */
        return (int) Math.pow(a, 1.0 / concentration);
      }
    
      @AfterExperiment
      void tearDown() {
        double req = requests.get();
        double hit = req - misses.get();
    
        // Currently, this is going into /dev/null, but I'll fix that
        System.out.println("hit rate: " + hit / req);
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 3.4K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/io/SourceSinkFactory.java

       * (byte[]) data.
       */
      T getExpected(T data);
    
      /** Cleans up anything created when creating the source or sink. */
      void tearDown() throws IOException;
    
      /** Factory for byte or char sources. */
      interface SourceFactory<S, T> extends SourceSinkFactory<S, T> {
    
        /** Creates a new source containing some or all of the given data. */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 30 16:59:10 GMT 2025
    - 3K bytes
    - Click Count (0)
  3. cmd/admin-handlers_test.go

    	return &adminErasureTestBed{
    		erasureDirs: erasureDirs,
    		objLayer:    objLayer,
    		router:      adminRouter,
    		done:        cancel,
    	}, nil
    }
    
    // TearDown - method that resets the test bed for subsequent unit
    // tests to start afresh.
    func (atb *adminErasureTestBed) TearDown() {
    	atb.done()
    	removeRoots(atb.erasureDirs)
    	resetTestGlobals()
    }
    
    // initTestObjLayer - Helper function to initialize an Erasure-based object
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 13.9K bytes
    - Click Count (1)
  4. okhttp/src/jvmTest/kotlin/okhttp3/internal/connection/RetryConnectionTest.kt

      @RegisterExtension
      val clientTestRule = OkHttpClientTestRule()
    
      private var client = clientTestRule.newClient()
    
      @AfterEach internal fun tearDown() {
        factory.close()
      }
    
      @Test fun nonRetryableIOException() {
        val exception = IOException("Non-handshake exception")
        assertThat(retryTlsHandshake(exception)).isFalse()
      }
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 4.3K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/io/MoreFilesFileTraverserTest.java

      @Override
      public void setUp() throws IOException {
        rootDir = Jimfs.newFileSystem(Configuration.unix()).getPath("/tmp");
        Files.createDirectory(rootDir);
      }
    
      @Override
      public void tearDown() throws IOException {
        rootDir.getFileSystem().close();
      }
    
      public void testFileTraverser_emptyDirectory() throws Exception {
        assertThat(MoreFiles.fileTraverser().breadthFirst(rootDir)).containsExactly(rootDir);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 3.8K bytes
    - Click Count (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/internal/authenticator/JavaNetAuthenticatorTest.kt

        TestValueFactory()
          .apply {
            dns = fakeDns
          }
    
      @BeforeEach
      fun setup() {
        Authenticator.setDefault(recordingAuthenticator)
      }
    
      @AfterEach
      fun tearDown() {
        Authenticator.setDefault(null)
        factory.close()
      }
    
      @Test
      fun testBasicAuth() {
        fakeDns["server"] = listOf(InetAddress.getLocalHost())
    
        val route = factory.newRoute()
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessApiFailureHookTest.java

            originalFessConfig = ComponentUtil.getFessConfig();
        }
    
        @Override
        protected void tearDown(TestInfo testInfo) throws Exception {
            if (originalFessConfig != null) {
                ComponentUtil.setFessConfig(originalFessConfig);
            }
            super.tearDown(testInfo);
        }
    
        // Test basic initialization
        @Test
        public void test_hookInitialization() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 7.2K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessUserTimeZoneProcessProviderTest.java

            provider = new FessUserTimeZoneProcessProvider();
            requestManager = createMockRequestManager();
        }
    
        @Override
        protected void tearDown(TestInfo testInfo) throws Exception {
            provider = null;
            requestManager = null;
            super.tearDown(testInfo);
        }
    
        // Test isUseTimeZoneHandling() method
        @Test
        public void test_isUseTimeZoneHandling() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 7.2K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/ListenableFutureTaskTest.java

        super.setUp();
    
        exec = newCachedThreadPool();
    
        task.addListener(listenerLatch::countDown, directExecutor());
      }
    
      @Override
      protected void tearDown() throws Exception {
        if (exec != null) {
          exec.shutdown();
        }
    
        super.tearDown();
      }
    
      public void testListenerDoesNotRunUntilTaskCompletes() throws Exception {
    
        // Test default state of not started.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 4.7K bytes
    - Click Count (0)
  10. fess-crawler-opensearch/src/test/java/org/codelibs/fess/crawler/CrawlerTest.java

            handler.setFormatter(new SimpleFormatter());
            handler.setLevel(Level.ALL);
            rootLogger.addHandler(handler);
        }
    
        @Override
        public void tearDown(final TestInfo testInfo) throws Exception {
            super.tearDown(testInfo);
            // close runner
            runner.close();
            // delete all files
            runner.clean();
        }
    
        @Test
    Created: Sun Apr 12 03:50:13 GMT 2026
    - Last Modified: Thu Jan 15 01:11:43 GMT 2026
    - 7.8K bytes
    - Click Count (0)
Back to Top