Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for thenReturn (0.27 sec)

  1. guava-tests/test/com/google/common/collect/ConcurrentHashMultisetTest.java

        // next map.get()
        when(backingMap.get(KEY)).thenReturn(existingZero);
        // since get returned zero, try a replace; that fails due to a simulated race
        when(backingMap.replace(eq(KEY), eq(existingZero), isA(AtomicInteger.class))).thenReturn(false);
        when(backingMap.putIfAbsent(eq(KEY), isA(AtomicInteger.class))).thenReturn(existing);
    
        // another map.get()
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 14.2K bytes
    - Viewed (0)
  2. maven-core/src/test/java/org/apache/maven/graph/DefaultGraphBuilderTest.java

            when(mavenExecutionRequest.getProjectActivation()).thenReturn(projectActivation);
            when(mavenExecutionRequest.getMakeBehavior()).thenReturn(parameterMakeBehavior);
            when(mavenExecutionRequest.getPom()).thenReturn(parameterRequestedPom);
            when(mavenExecutionRequest.isRecursive()).thenReturn(parameterRecursive);
            if (parameterResumeFrom != null && !parameterResumeFrom.isEmpty()) {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Tue Dec 05 09:23:26 GMT 2023
    - 27.8K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

        ExecutorService service = mock(ExecutorService.class);
        when(service.awaitTermination(HALF_SECOND_NANOS, NANOSECONDS))
            .thenReturn(false)
            .thenReturn(true);
        when(service.isTerminated()).thenReturn(true);
        assertTrue(shutdownAndAwaitTermination(service, 1L, SECONDS));
        verify(service).shutdown();
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 28.2K bytes
    - Viewed (3)
  4. android/guava-tests/test/com/google/common/collect/ConcurrentHashMultisetTest.java

        // next map.get()
        when(backingMap.get(KEY)).thenReturn(existingZero);
        // since get returned zero, try a replace; that fails due to a simulated race
        when(backingMap.replace(eq(KEY), eq(existingZero), isA(AtomicInteger.class))).thenReturn(false);
        when(backingMap.putIfAbsent(eq(KEY), isA(AtomicInteger.class))).thenReturn(existing);
    
        // another map.get()
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 14.2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

        ExecutorService service = mock(ExecutorService.class);
        when(service.awaitTermination(HALF_SECOND_NANOS, NANOSECONDS))
            .thenReturn(false)
            .thenReturn(true);
        when(service.isTerminated()).thenReturn(true);
        assertTrue(shutdownAndAwaitTermination(service, 1L, SECONDS));
        verify(service).shutdown();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 28.2K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/ImmutableSortedMultisetTest.java

        TestHashSet<Entry<String>> entrySet = new TestHashSet<>();
        when((Comparator<Comparable<String>>) toCopy.comparator())
            .thenReturn(Ordering.<Comparable<String>>natural());
        when(toCopy.entrySet()).thenReturn(entrySet);
        ImmutableSortedMultiset<String> unused = ImmutableSortedMultiset.copyOfSorted(toCopy);
        assertTrue(entrySet.toArrayCalled);
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 22.6K bytes
    - Viewed (0)
Back to top