Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for shouldSaveModifications (0.09 sec)

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

        class ModificationBehaviorTests {
    
            @Test
            @DisplayName("should save modifications to disk")
            void shouldSaveModificationsToDisk() {
                assertTrue(applyGoal.shouldSaveModifications(), "Apply goal should save modifications to disk");
            }
        }
    
        @Nested
        @DisplayName("Execution")
        class ExecutionTests {
    
            @Test
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 10:39:17 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  2. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/CheckTest.java

        class ModificationBehaviorTests {
    
            @Test
            @DisplayName("should not save modifications to disk")
            void shouldNotSaveModificationsToDisk() {
                assertFalse(checkGoal.shouldSaveModifications(), "Check goal should not save modifications to disk");
            }
        }
    
        @Nested
        @DisplayName("Execution")
        class ExecutionTests {
    
            @Test
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sat Jun 07 06:22:47 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  3. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/Apply.java

    @Singleton
    public class Apply extends AbstractUpgradeGoal {
    
        @Inject
        public Apply(StrategyOrchestrator orchestrator) {
            super(orchestrator);
        }
    
        @Override
        protected boolean shouldSaveModifications() {
            return true;
        }
    
        @Override
        public int execute(UpgradeContext context) throws Exception {
            context.info("Maven Upgrade Tool - Apply");
            context.println();
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sat Jun 07 06:22:47 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  4. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/Check.java

    @Singleton
    public class Check extends AbstractUpgradeGoal {
    
        @Inject
        public Check(StrategyOrchestrator orchestrator) {
            super(orchestrator);
        }
    
        @Override
        protected boolean shouldSaveModifications() {
            return false;
        }
    
        @Override
        public int execute(UpgradeContext context) throws Exception {
            context.info("Maven Upgrade Tool - Check");
            context.println();
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sat Jun 07 06:22:47 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  5. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/AbstractUpgradeGoal.java

            // Perform the upgrade logic
            int result = doUpgrade(context, targetModel, pomMap);
    
            // Save modifications if this is an apply goal
            if (shouldSaveModifications() && result == 0) {
                saveModifications(context, pomMap);
            }
    
            return result;
        }
    
        /**
         * Performs the upgrade logic using the strategy pattern.
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  6. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/AbstractUpgradeGoalTest.java

            TestableAbstractUpgradeGoal(StrategyOrchestrator orchestrator) {
                super(orchestrator);
            }
    
            @Override
            protected boolean shouldSaveModifications() {
                return true; // Enable actual file operations for tests
            }
    
            // Test helper methods to expose protected functionality
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 13.7K bytes
    - Viewed (0)
Back to top