- Sort Score
- Num 10 results
- Language All
Results 31 - 32 of 32 for thenReturn (0.07 seconds)
-
api/maven-api-core/src/test/java/org/apache/maven/api/services/SourcesTest.java
ModelSource.ModelLocator locator = mock(ModelSource.ModelLocator.class); Path resolvedPath = Paths.get("/tmp/subproject/pom.xml"); when(locator.locateExistingPom(any(Path.class))).thenReturn(resolvedPath); Sources.BuildPathSource source = (Sources.BuildPathSource) Sources.buildSource(basePath); ModelSource resolved = source.resolve(locator, "subproject"); assertNotNull(resolved);
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Mon Sep 29 14:45:25 GMT 2025 - 5.4K bytes - Click Count (0) -
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); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 22.7K bytes - Click Count (0)