- Sort Score
- Num 10 results
- Language All
Results 11 - 15 of 15 for createMockContext (0.08 seconds)
-
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/ApplyTest.java
@BeforeEach void setUp() { mockOrchestrator = mock(StrategyOrchestrator.class); applyGoal = new Apply(mockOrchestrator); } private UpgradeContext createMockContext() { return TestUtils.createMockContext(); } @Nested @DisplayName("Modification Behavior") class ModificationBehaviorTests { @Test @DisplayName("should save modifications to disk")Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Nov 18 10:39:17 GMT 2025 - 4.9K bytes - Click Count (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/CheckTest.java
@BeforeEach void setUp() { mockOrchestrator = mock(StrategyOrchestrator.class); checkGoal = new Check(mockOrchestrator); } private UpgradeContext createMockContext() { return TestUtils.createMockContext(); } @Nested @DisplayName("Modification Behavior") class ModificationBehaviorTests { @Test @DisplayName("should not save modifications to disk")Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Sat Jun 07 06:22:47 GMT 2025 - 4.9K bytes - Click Count (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/ModelUpgradeStrategyTest.java
private ModelUpgradeStrategy strategy; @BeforeEach void setUp() { strategy = new ModelUpgradeStrategy(); } private UpgradeContext createMockContext(UpgradeOptions options) { return TestUtils.createMockContext(options); } @Nested @DisplayName("Applicability") class ApplicabilityTests { @ParameterizedTestCreated: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Nov 18 18:03:26 GMT 2025 - 38.8K bytes - Click Count (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/UpgradeContextTest.java
@Test @DisplayName("should create context successfully") void shouldCreateContextSuccessfully() { // Use existing test utilities to create a context UpgradeContext context = TestUtils.createMockContext(Paths.get("/test")); // Verify context is created and basic methods work assertNotNull(context, "Context should be created"); assertNotNull(context.options(), "Options should be available");Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Jul 15 09:35:08 GMT 2025 - 3.3K bytes - Click Count (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/UpgradeWorkflowIntegrationTest.java
.build(); Files.writeString(pomFile, originalPom); // Create context with --model 4.1.0 option UpgradeContext context = TestUtils.createMockContext(tempDir, TestUtils.createOptionsWithModelVersion("4.1.0")); // Execute apply goal int result = applyGoal.execute(context); // Verify success
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Sep 17 10:01:14 GMT 2025 - 9.3K bytes - Click Count (0)