Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for modifiedCount (0.11 sec)

  1. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/UpgradeResultTest.java

                assertTrue(result.success(), "Empty result should be successful");
                assertEquals(0, result.processedCount(), "Empty result should have no processed POMs");
                assertEquals(0, result.modifiedCount(), "Empty result should have no modified POMs");
                assertEquals(0, result.unmodifiedCount(), "Empty result should have no unmodified POMs");
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sat Jun 07 06:22:47 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  2. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/CompatibilityFixStrategyTest.java

                UpgradeResult result = strategy.doApply(context, pomMap);
    
                assertTrue(result.success(), "Compatibility fix should succeed");
                assertTrue(result.modifiedCount() > 0, "Should have removed duplicate dependency");
    
                // Verify only one dependency remains
                Editor editor = new Editor(document);
                Element root = editor.root();
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  3. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/PluginUpgradeStrategyTest.java

                UpgradeResult result = strategy.doApply(context, pomMap);
    
                assertTrue(result.success(), "Plugin upgrade should succeed");
                assertTrue(result.modifiedCount() > 0, "Should have upgraded maven-enforcer-plugin");
    
                // Verify the version was upgraded
                Editor editor = new Editor(document);
                Element root = editor.root();
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 27.8K bytes
    - Viewed (0)
  4. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/UpgradeResult.java

         * Returns the number of POMs processed.
         */
        public int processedCount() {
            return processedPoms.size();
        }
    
        /**
         * Returns the number of POMs modified.
         */
        public int modifiedCount() {
            return modifiedPoms.size();
        }
    
        /**
         * Returns the number of POMs that had errors.
         */
        public int errorCount() {
            return errorPoms.size();
        }
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sat Jun 07 06:22:47 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  5. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/ModelUpgradeStrategyTest.java

                UpgradeResult result = strategy.doApply(context, pomMap);
    
                assertTrue(result.success(), "Model upgrade should succeed: " + description);
                assertEquals(expectedModifiedCount, result.modifiedCount(), description);
    
                // Verify the model version and namespace - use the updated document from pomMap
                Document updatedDocument = pomMap.get(Paths.get("pom.xml"));
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 38.8K bytes
    - Viewed (0)
  6. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/AbstractUpgradeStrategy.java

        protected void logSummary(UpgradeContext context, UpgradeResult result) {
            context.println();
            context.info(getDescription() + " Summary:");
            context.indent();
            context.info(result.modifiedCount() + " POM(s) modified");
            context.info(result.unmodifiedCount() + " POM(s) needed no changes");
            if (result.errorCount() > 0) {
                context.info(result.errorCount() + " POM(s) had errors");
            }
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 7.1K bytes
    - Viewed (0)
Back to top