Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 25 for anyMatch (0.05 seconds)

  1. impl/maven-core/src/test/java/org/apache/maven/project/RepositoryLeakageTest.java

                        .anyMatch(repo -> "child1-repo".equals(repo.getId()));
                assertTrue(child1HasOwnRepo, "Child1 should have its own repository");
    
                // Verify that child2 has its own repository
                boolean child2HasOwnRepo = child2Project.getRemoteArtifactRepositories().stream()
                        .anyMatch(repo -> "child2-repo".equals(repo.getId()));
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Oct 16 06:12:36 GMT 2025
    - 9.3K bytes
    - Click Count (0)
  2. impl/maven-core/src/test/java/org/apache/maven/internal/transformation/impl/ConsumerPomArtifactTransformerTest.java

            assertEquals(3, artifacts.size()); // original jar + consumer pom + build pom
    
            assertTrue(artifacts.stream().anyMatch(a -> "pom".equals(a.getExtension()) && "".equals(a.getClassifier())));
            assertTrue(
                    artifacts.stream().anyMatch(a -> "pom".equals(a.getExtension()) && "build".equals(a.getClassifier())));
        }
    
        @Test
        void testDeployBuildPomDisabled() {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Nov 06 18:32:25 GMT 2025
    - 13.3K bytes
    - Click Count (0)
  3. impl/maven-core/src/main/java/org/apache/maven/project/collector/MultiModuleCollectionStrategy.java

         */
        private boolean isRequestedProjectCollected(MavenExecutionRequest request, List<MavenProject> projects) {
            return projects.stream().map(MavenProject::getFile).anyMatch(request.getPom()::equals);
        }
    
        /**
         * This method finds out whether collecting projects failed because of the following scenario:
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Sat Apr 05 11:52:05 GMT 2025
    - 9.1K bytes
    - Click Count (0)
  4. impl/maven-core/src/test/java/org/apache/maven/project/DefaultMavenProjectBuilderTest.java

                assertTrue(project.getInjectedProfileIds().get(id).stream().noneMatch("profile1"::equals));
                assertTrue(project.getInjectedProfileIds().get(id).stream().noneMatch("profile2"::equals));
                assertTrue(project.getInjectedProfileIds().get(id).stream().anyMatch("active-by-default"::equals));
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Nov 18 17:20:31 GMT 2025
    - 33.7K bytes
    - Click Count (0)
  5. impl/maven-core/src/test/java/org/apache/maven/project/ProjectBuildingResultWithProblemMessageAssert.java

        }
    
        public ProjectBuildingResultWithProblemMessageAssert hasProblemMessage(String problemMessage) {
            assertNotNull(actual);
    
            boolean hasMessage =
                    actual.getProblems().stream().anyMatch(p -> p.getMessage().contains(problemMessage));
    
            if (!hasMessage) {
                String actualMessages = actual.getProblems().stream()
                        .map(ModelProblem::getMessage)
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Sep 17 10:01:14 GMT 2025
    - 2.6K bytes
    - Click Count (0)
  6. impl/maven-core/src/main/java/org/apache/maven/plugin/internal/PlexusContainerDefaultDependenciesValidator.java

            boolean pcdPresent = artifactDescriptorResult.getDependencies().stream()
                    .filter(d -> "org.codehaus.plexus".equals(d.getArtifact().getGroupId()))
                    .anyMatch(d -> "plexus-container-default".equals(d.getArtifact().getArtifactId()));
    
            if (pcdPresent) {
                pluginValidationManager.reportPluginValidationIssue(
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 2.2K bytes
    - Click Count (0)
  7. impl/maven-core/src/test/java/org/apache/maven/project/ProjectBuildingResultWithLocationAssert.java

        }
    
        public ProjectBuildingResultWithLocationAssert hasLocation(int columnNumber, int lineNumber) {
            assertNotNull(actual);
    
            boolean hasLocation = actual.getProblems().stream()
                    .anyMatch(p -> p.getLineNumber() == lineNumber && p.getColumnNumber() == columnNumber);
    
            if (!hasLocation) {
                String actualLocations = actual.getProblems().stream()
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Sep 17 10:01:14 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  8. impl/maven-core/src/main/java/org/apache/maven/plugin/internal/AbstractMavenPluginDescriptorSourcedParametersValidator.java

            String propertyName = strValue.replace("${", "").replace("}", "");
    
            if (IGNORED_PROPERTY_VALUES.contains(propertyName)) {
                return true;
            }
    
            return IGNORED_PROPERTY_PREFIX.stream().anyMatch(propertyName::startsWith);
        }
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 2.5K bytes
    - Click Count (0)
  9. api/maven-api-core/src/main/java/org/apache/maven/api/services/RepositoryAwareRequest.java

                                + "Found " + repositories.size() + " repositories but only " + set.size()
                                + " unique entries.");
            }
            if (repositories.stream().anyMatch(Objects::isNull)) {
                throw new IllegalArgumentException(
                        "Repository list contains null entries. All repository entries must be non-null RemoteRepository instances.");
            }
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 10 07:30:49 GMT 2025
    - 5K bytes
    - Click Count (0)
  10. guava/src/com/google/common/collect/FluentIterable.java

      }
    
      /**
       * Returns {@code true} if any element in this fluent iterable satisfies the predicate.
       *
       * <p><b>{@code Stream} equivalent:</b> {@link Stream#anyMatch} (same).
       */
      public final boolean anyMatch(Predicate<? super E> predicate) {
        return Iterables.any(getDelegate(), predicate);
      }
    
      /**
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 34.7K bytes
    - Click Count (0)
Back to Top