Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for testOrdering (0.19 sec)

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

        CountDownLatch countDownLatch = new CountDownLatch(1);
        list.add(new MockRunnable(countDownLatch), Executors.newCachedThreadPool());
        assertTrue(countDownLatch.await(1L, TimeUnit.SECONDS));
      }
    
      public void testOrdering() throws Exception {
        final AtomicInteger integer = new AtomicInteger();
        for (int i = 0; i < 10; i++) {
          final int expectedCount = i;
          list.add(
              new Runnable() {
                @Override
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 09 22:57:07 GMT 2022
    - 4.7K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/ExecutionListTest.java

        CountDownLatch countDownLatch = new CountDownLatch(1);
        list.add(new MockRunnable(countDownLatch), Executors.newCachedThreadPool());
        assertTrue(countDownLatch.await(1L, TimeUnit.SECONDS));
      }
    
      public void testOrdering() throws Exception {
        final AtomicInteger integer = new AtomicInteger();
        for (int i = 0; i < 10; i++) {
          final int expectedCount = i;
          list.add(
              new Runnable() {
                @Override
    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)
  3. guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java

        // No change yet.
        assertEquals(2, totalCalls.get());
        fakePool.runAll();
        assertEquals(5, totalCalls.get());
        assertFalse(fakePool.hasNext());
      }
    
      public void testOrdering() {
        final List<Integer> callOrder = Lists.newArrayList();
    
        class FakeOp implements Runnable {
          final int op;
    
          FakeOp(int op) {
            this.op = op;
          }
    
          @Override
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 11.4K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java

        // No change yet.
        assertEquals(2, totalCalls.get());
        fakePool.runAll();
        assertEquals(5, totalCalls.get());
        assertFalse(fakePool.hasNext());
      }
    
      public void testOrdering() {
        final List<Integer> callOrder = Lists.newArrayList();
    
        class FakeOp implements Runnable {
          final int op;
    
          FakeOp(int op) {
            this.op = op;
          }
    
          @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 11.4K bytes
    - Viewed (0)
Back to top