Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for SimpleProblemCollector (0.12 sec)

  1. compat/maven-model-builder/src/test/java/org/apache/maven/model/building/SimpleProblemCollector.java

     *
     */
    public class SimpleProblemCollector implements ModelProblemCollector {
        private Model model;
    
        private List<String> warnings = new ArrayList<>();
    
        private List<String> errors = new ArrayList<>();
    
        private List<String> fatals = new ArrayList<>();
    
        public SimpleProblemCollector() {}
    
        public SimpleProblemCollector(Model model) {
            this.model = model;
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  2. compat/maven-settings-builder/src/test/java/org/apache/maven/settings/validation/DefaultSettingsValidatorTest.java

            model.addProfile(prof);
            SimpleProblemCollector problems = new SimpleProblemCollector();
            validator.validate(model, problems);
            assertEquals(0, problems.messages.size());
    
            Repository repo = new Repository(org.apache.maven.api.settings.Repository.newInstance(false));
            prof.addRepository(repo);
            problems = new SimpleProblemCollector();
            validator.validate(model, problems);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  3. compat/maven-model-builder/src/test/java/org/apache/maven/model/profile/activation/AbstractProfileActivatorTest.java

        }
    
        protected void assertActivation(boolean active, Profile profile, ProfileActivationContext context) {
            SimpleProblemCollector problems = new SimpleProblemCollector();
    
            assertEquals(active, activator.isActive(new org.apache.maven.model.Profile(profile), context, problems));
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  4. compat/maven-model-builder/src/test/java/org/apache/maven/model/profile/DefaultProfileSelectorTest.java

            });
    
            List<Profile> profiles = Collections.singletonList(newProfile("one"));
            DefaultProfileActivationContext context = new DefaultProfileActivationContext();
            SimpleProblemCollector problems = new SimpleProblemCollector();
            List<Profile> active = selector.getActiveProfiles(profiles, context, problems);
            assertTrue(active.isEmpty());
            assertEquals(1, problems.getErrors().size());
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  5. compat/maven-model-builder/src/test/java/org/apache/maven/model/inheritance/DefaultInheritanceAssemblerTest.java

                parent = Model.newBuilder(parent, true).pomFile(null).build();
                child = Model.newBuilder(child, true).pomFile(null).build();
            }
    
            SimpleProblemCollector problems = new SimpleProblemCollector();
    
            Model assembled = assembler.assembleModelInheritance(child, parent, null, problems);
    
            // write baseName + "-actual"
            File actual = new File(
    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/profile/activation/JdkVersionProfileActivatorTest.java

        }
    
        private void assertActivationWithProblems(
                Profile profile, ProfileActivationContext context, String warningContains) {
            SimpleProblemCollector problems = new SimpleProblemCollector();
    
            assertFalse(activator.isActive(new org.apache.maven.model.Profile(profile), context, problems));
    
            assertEquals(0, problems.getErrors().size());
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9K bytes
    - Viewed (0)
Back to top