Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 308 for run (0.17 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/ExecutionListTest.java

        thread2.join();
        assertEquals(1, runCalled.get());
      }
    
      public void testAddAfterRun() throws Exception {
        // Run the previous test
        testRunOnPopulatedList();
    
        // If it passed, then verify an Add will be executed without calling run
        CountDownLatch countDownLatch = new CountDownLatch(1);
        list.add(new MockRunnable(countDownLatch), Executors.newCachedThreadPool());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 09 22:57:07 GMT 2022
    - 4.7K bytes
    - Viewed (0)
  2. guava-testlib/test/com/google/common/testing/TearDownStackTest.java

        final Callback callback =
            new Callback() {
              @Override
              public void run() {
                assertEquals(
                    "tearDownTwo should have been run before tearDownOne", false, tearDownOne.ran);
              }
            };
    
        final SimpleTearDown tearDownTwo = new SimpleTearDown(callback);
        stack.addTearDown(tearDownTwo);
    
        assertEquals(false, tearDownOne.ran);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 15:19:38 GMT 2023
    - 4.6K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/TrustedListenableFutureTaskTest.java

                });
        assertFalse(task.isDone());
        Thread thread =
            new Thread(
                new Runnable() {
                  @Override
                  public void run() {
                    try {
                      task.run();
                    } finally {
                      exitLatch.countDown();
                    }
                  }
                });
        thread.start();
        enterLatch.await();
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  4. .github/workflows/ci.yml

            shell: bash
            run: ./mvnw -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn install -U -DskipTests=true -f $ROOT_POM
          - name: 'Test'
            shell: bash
            run: ./mvnw -B -P!standard-with-extra-repos verify -U -Dmaven.javadoc.skip=true -f $ROOT_POM
          - name: 'Print Surefire reports'
            # Note: Normally a step won't run if the job has failed, but this causes it to
    Others
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:33:50 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  5. android/guava-testlib/test/com/google/common/testing/anotherpackage/ForwardingWrapperTesterTest.java

              public Runnable apply(final Runnable runnable) {
                return new Runnable() {
                  @Override
                  public void run() {
                    runnable.run();
                    runnable.run();
                  }
                };
              }
            },
            "run()",
            "invoked more than once");
      }
    
      public void testFailsToForwardParameters() {
        assertFailure(
            Adder.class,
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 15.7K bytes
    - Viewed (0)
  6. android/guava-testlib/test/com/google/common/collect/testing/FeatureSpecificTestSuiteBuilderTest.java

        Runnable setUpRunnable =
            new Runnable() {
              @Override
              public void run() {
                setUp[0] = true;
              }
            };
    
        boolean[] tearDown = {false};
        Runnable tearDownRunnable =
            new Runnable() {
              @Override
              public void run() {
                tearDown[0] = true;
              }
            };
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/SequentialExecutor.java

          // allocation.
          submittedTask =
              new Runnable() {
                @Override
                public void run() {
                  task.run();
                }
    
                @Override
                public String toString() {
                  return task.toString();
                }
              };
          queue.add(submittedTask);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/JdkFutureAdaptersTest.java

      }
    
      private static class SingleCallListener implements Runnable {
    
        private boolean expectCall = false;
        private final CountDownLatch calledCountDown = new CountDownLatch(1);
    
        @Override
        public void run() {
          assertTrue("Listener called before it was expected", expectCall);
          assertFalse("Listener called more than once", wasCalled());
          calledCountDown.countDown();
        }
    
        public void expectCall() {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 09 22:57:07 GMT 2022
    - 9.7K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

       * there is no current security manager, the runnable is run twice, both with and without a
       * security manager. We require that any security manager permit getPolicy/setPolicy.
       */
      public void runWithPermissions(Runnable r, Permission... permissions) {
        SecurityManager sm = System.getSecurityManager();
        if (sm == null) {
          r.run();
          Policy savedPolicy = Policy.getPolicy();
          try {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.7K bytes
    - Viewed (0)
  10. android/guava-testlib/test/com/google/common/collect/testing/MapTestSuiteBuilderTests.java

            new Runnable() {
              @Override
              public void run() {
                assertFalse("previous tearDown should have run before setUp", setUpRan.getAndSet(true));
              }
            };
        Runnable tearDown =
            new Runnable() {
              @Override
              public void run() {
                assertTrue("setUp should have run", setUpRan.getAndSet(false));
              }
            };
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 11.5K bytes
    - Viewed (0)
Back to top