Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 163 for teardown (0.12 sec)

  1. guava-testlib/test/com/google/common/collect/testing/MapTestSuiteBuilderTests.java

          }
        }
      }
    
      /** Verifies that {@code setUp} and {@code tearDown} are called in all map test cases. */
      private static Test testsForSetUpTearDown() {
        final AtomicBoolean setUpRan = new AtomicBoolean();
        Runnable setUp =
            new Runnable() {
              @Override
              public void run() {
                assertFalse("previous tearDown should have run before setUp", setUpRan.getAndSet(true));
              }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 19 19:24:36 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/AbstractExecutionThreadServiceTest.java

    import static com.google.common.truth.Truth.assertThat;
    import static java.util.concurrent.TimeUnit.MILLISECONDS;
    import static org.junit.Assert.assertThrows;
    
    import com.google.common.testing.TearDown;
    import com.google.common.testing.TearDownStack;
    import com.google.common.util.concurrent.testing.TestingExecutors;
    import java.lang.Thread.UncaughtExceptionHandler;
    import java.util.concurrent.CountDownLatch;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 12.7K bytes
    - Viewed (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
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jul 24 10:24:01 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/TestThread.java

    import static junit.framework.Assert.assertNotNull;
    import static junit.framework.Assert.assertNull;
    import static junit.framework.Assert.assertSame;
    
    import com.google.common.testing.TearDown;
    import java.lang.reflect.InvocationTargetException;
    import java.lang.reflect.Method;
    import java.util.concurrent.SynchronousQueue;
    import java.util.concurrent.TimeoutException;
    import junit.framework.AssertionFailedError;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/io/SourceSinkTester.java

              return new StringReader(string);
            }
          }.readLines();
        } catch (IOException e) {
          throw new AssertionError();
        }
      }
    
      @Override
      public void tearDown() throws IOException {
        factory.tearDown();
      }
    
      static ImmutableList<Method> getTestMethods(Class<?> testClass) {
        List<Method> result = Lists.newArrayList();
        for (Method method : testClass.getDeclaredMethods()) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 27 18:57:08 UTC 2022
    - 4.9K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/ClosingFutureFinishToValueAndCloserTest.java

      private final ExecutorService finishToValueAndCloserExecutor = newSingleThreadExecutor();
      private volatile ValueAndCloser<?> valueAndCloser;
    
      @Override
      protected void tearDown() throws Exception {
        super.tearDown();
        assertWithMessage("finishToValueAndCloserExecutor was shut down")
            .that(shutdownAndAwaitTermination(finishToValueAndCloserExecutor, 10, SECONDS))
            .isTrue();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/AbstractExecutionThreadServiceTest.java

    import static com.google.common.truth.Truth.assertThat;
    import static java.util.concurrent.TimeUnit.MILLISECONDS;
    import static org.junit.Assert.assertThrows;
    
    import com.google.common.testing.TearDown;
    import com.google.common.testing.TearDownStack;
    import com.google.common.util.concurrent.testing.TestingExecutors;
    import java.lang.Thread.UncaughtExceptionHandler;
    import java.util.concurrent.CountDownLatch;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/query/TermQueryCommandTest.java

            ComponentUtil.register(queryParser, "queryParser");
    
            queryCommand = new TermQueryCommand();
        }
    
        @Override
        public void tearDown() throws Exception {
            ComponentUtil.setFessConfig(null);
            super.tearDown();
        }
    
        private void setQueryType(final String queryType) {
            final FessConfig fessConfig = ComponentUtil.getFessConfig();
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Jul 11 08:26:36 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/ListenableFutureTaskTest.java

              public void run() {
                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.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/AddressTest.kt

    import org.junit.jupiter.api.Test
    
    class AddressTest {
      private val factory =
        TestValueFactory().apply {
          uriHost = "example.com"
          uriPort = 80
        }
    
      @AfterEach fun tearDown() {
        factory.close()
      }
    
      @Test fun equalsAndHashcode() {
        val a = factory.newAddress()
        val b = factory.newAddress()
        assertThat(b).isEqualTo(a)
        assertThat(b.hashCode()).isEqualTo(a.hashCode())
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.8K bytes
    - Viewed (0)
Back to top