Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for getSum (0.07 sec)

  1. guava-tests/test/com/google/common/math/StatsTest.java

          assertThat(stats.count()).isEqualTo(streamStats.getCount());
          assertEquivalent(stats.mean(), streamStats.getAverage());
          assertEquivalent(stats.sum(), streamStats.getSum());
          assertEquivalent(stats.max(), streamStats.getMax());
          assertEquivalent(stats.min(), streamStats.getMin());
        }
      }
    
      private static void assertEquivalent(double actual, double expected) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  2. impl/maven-core/src/main/java/org/apache/maven/graph/DefaultGraphBuilder.java

                throws MavenExecutionException {
            if (request.getPom() == null) {
                return projects;
            }
    
            MavenProject requestPomProject = projects.stream()
                    .filter(project -> request.getPom().equals(project.getFile()))
                    .findFirst()
                    .orElseThrow(() -> new MavenExecutionException(
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  3. compat/maven-compat/src/test/java/org/apache/maven/project/inheritance/t12scm/ProjectInheritanceTest.java

            System.out.println(
                    "Child SCM developer connection is: " + project1.getScm().getDeveloperConnection());
    
            assertEquals(project1.getScm().getUrl(), project0.getScm().getUrl() + "/modules/p1");
            assertEquals(project1.getScm().getConnection(), project0.getScm().getConnection() + "/modules/p1");
            assertEquals(
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  4. compat/maven-model-builder/src/test/java/org/apache/maven/model/building/ComplexActivationTest.java

    import static org.junit.jupiter.api.Assertions.assertNotNull;
    import static org.junit.jupiter.api.Assertions.assertNull;
    
    /**
     */
    class ComplexActivationTest {
    
        private File getPom(String name) {
            return new File("src/test/resources/poms/factory/" + name + ".xml").getAbsoluteFile();
        }
    
        @Test
        void testAndConditionInActivation() throws Exception {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  5. compat/maven-model-builder/src/test/java/org/apache/maven/model/inheritance/DefaultInheritanceAssemblerTest.java

            writer = new DefaultModelWriter();
            assembler = new DefaultInheritanceAssembler();
        }
    
        private File getPom(String name) {
            return new File("src/test/resources/poms/inheritance/" + name + ".xml");
        }
    
        private Model getModel(String name) throws IOException {
            return reader.read(getPom(name), null).getDelegate();
        }
    
        @Test
        void testPluginConfiguration() throws Exception {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  6. compat/maven-model-builder/src/test/java/org/apache/maven/model/building/DefaultModelBuilderFactoryTest.java

    /**
     */
    class DefaultModelBuilderFactoryTest {
    
        private static final String BASE_DIR =
                Paths.get("src", "test", "resources", "poms", "factory").toString();
    
        private File getPom(String name) {
            return new File(Paths.get(BASE_DIR, name + ".xml").toString()).getAbsoluteFile();
        }
    
        @Test
        void testCompleteWiring() throws Exception {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  7. compat/maven-model-builder/src/main/java/org/apache/maven/model/path/DefaultModelUrlNormalizer.java

        public void normalize(Model model, ModelBuildingRequest request) {
            if (model == null) {
                return;
            }
    
            model.setUrl(normalize(model.getUrl()));
    
            Scm scm = model.getScm();
            if (scm != null) {
                scm.setUrl(normalize(scm.getUrl()));
                scm.setConnection(normalize(scm.getConnection()));
                scm.setDeveloperConnection(normalize(scm.getDeveloperConnection()));
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.4K bytes
    - Viewed (1)
  8. impl/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequestPopulator.java

            }
        }
    
        private void baseDirectory(MavenExecutionRequest request) {
            if (request.getBaseDirectory() == null && request.getPom() != null) {
                request.setBaseDirectory(request.getPom().getAbsoluteFile().getParentFile());
            }
        }
    
        /*if_not[MAVEN4]*/
    
        @Override
        @Deprecated
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  9. compat/maven-compat/src/test/java/org/apache/maven/project/inheritance/t00/ProjectInheritanceTest.java

            // Value taken from p1
            // ----------------------------------------------------------------------
    
            assertEquals("scm-url/p2/p3/p4", p4.getScm().getUrl());
    
            // ----------------------------------------------------------------------
            // Value taken from p4
            // ----------------------------------------------------------------------
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  10. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultMojoExecution.java

        public String getGoal() {
            return delegate.getGoal();
        }
    
        @Override
        public Optional<XmlNode> getConfiguration() {
            return Optional.of(delegate.getConfiguration()).map(Xpp3Dom::getDom);
        }
    
        @Override
        public String toString() {
            return delegate.toString();
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.2K bytes
    - Viewed (0)
Back to top