Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for executeStrategies (0.07 sec)

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

                    when(strategy.apply(Mockito.eq(context), Mockito.any())).thenReturn(UpgradeResult.empty());
                }
    
                UpgradeResult result = orchestrator.executeStrategies(context, pomMap);
    
                assertTrue(result.success(), "Orchestrator should succeed when all strategies succeed");
    
                // Verify all strategies were called
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  2. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/AbstractUpgradeGoalTest.java

                Files.writeString(pomFile, pomXml);
    
                UpgradeContext context = createMockContext(projectDir);
    
                // Mock successful strategy execution
                when(mockOrchestrator.executeStrategies(Mockito.any(), Mockito.any()))
                        .thenReturn(UpgradeResult.empty());
    
                // Execute with target model 4.0.0 (should create .mvn directory)
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 13.7K bytes
    - Viewed (0)
  3. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/ApplyTest.java

                    // Update context to use the temp directory
                    when(context.invokerRequest.cwd()).thenReturn(tempDir);
    
                    // Mock successful strategy execution
                    when(mockOrchestrator.executeStrategies(Mockito.any(), Mockito.any()))
                            .thenReturn(UpgradeResult.empty());
    
                    applyGoal.execute(context);
    
                    // Verify that the Apply-specific header is logged
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 10:39:17 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  4. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/StrategyOrchestrator.java

         *
         * @param context the upgrade context
         * @param pomMap map of all POM files in the project
         * @return the overall result of all strategy executions
         */
        public UpgradeResult executeStrategies(UpgradeContext context, Map<Path, Document> pomMap) {
            context.println();
            context.info("Maven Upgrade Tool");
            logUpgradeOptions(context);
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 7K bytes
    - Viewed (0)
  5. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/AbstractUpgradeGoal.java

        protected int doUpgrade(UpgradeContext context, String targetModel, Map<Path, Document> pomMap) {
            // Execute strategies using the orchestrator
            try {
                UpgradeResult result = orchestrator.executeStrategies(context, pomMap);
    
                // Create .mvn directory if needed to avoid root directory warnings
                // This is needed for both 4.0.0 and 4.1.0 to help Maven find the project root
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 12.5K bytes
    - Viewed (0)
Back to top