Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for thenReturn (0.06 sec)

  1. compat/maven-embedder/src/test/java/org/apache/maven/cli/event/ExecutionEventLoggerTest.java

            when(project.getGroupId()).thenReturn("org.apache.maven");
            when(project.getArtifactId()).thenReturn("maven-embedder");
            when(project.getPackaging()).thenReturn("jar");
            when(project.getName()).thenReturn("Apache Maven Embedder");
            when(project.getVersion()).thenReturn("3.5.4-SNAPSHOT");
            when(project.getFile()).thenReturn(new File(basedir, "maven-embedder/pom.xml"));
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  2. compat/maven-model-builder/src/test/java/org/apache/maven/model/building/BuildModelSourceTransformerTest.java

                    .artifactId("ARTIFACTID")
                    .version("1.0-SNAPSHOT")
                    .build());
            Mockito.when(context.getRawModel(pomFile, root.resolve("pom.xml"))).thenReturn(parent);
            Mockito.when(context.locate(root)).thenReturn(root.resolve("pom.xml"));
            Model initial = new Model(org.apache.maven.api.model.Model.newBuilder()
                    .parent(org.apache.maven.api.model.Parent.newBuilder()
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  3. compat/maven-toolchain-builder/src/test/java/org/apache/maven/toolchain/building/DefaultToolchainsBuilderTest.java

        }
    
        @Test
        void testStrictToolchainsParseException() throws Exception {
            Location loc = mock(Location.class);
            when(loc.getLineNumber()).thenReturn(4);
            when(loc.getColumnNumber()).thenReturn(2);
            XMLStreamException parseException = new XMLStreamException("MESSAGE", loc);
            doThrow(new XmlReaderException("MESSAGE", getLocation(parseException), parseException))
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  4. 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);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.7K bytes
    - Viewed (0)
Back to top