Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for TestUtils (0.04 sec)

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

    import static org.mockito.Mockito.mock;
    import static org.mockito.Mockito.when;
    
    /**
     * Utility class for creating test fixtures and reducing code duplication in tests.
     */
    public final class TestUtils {
    
        private TestUtils() {
            // Utility class
        }
    
        /**
         * Creates a mock UpgradeContext with default settings.
         *
         * @return a mock UpgradeContext
         */
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  2. 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
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Sep 17 10:01:14 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  3. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/UpgradeContextTest.java

     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.cling.invoker.mvnup;
    
    import java.nio.file.Paths;
    
    import org.apache.maven.cling.invoker.mvnup.goals.TestUtils;
    import org.junit.jupiter.api.DisplayName;
    import org.junit.jupiter.api.Test;
    
    import static org.junit.jupiter.api.Assertions.assertNotNull;
    
    /**
     * Unit tests for the {@link UpgradeContext} class.
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Jul 15 09:35:08 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  4. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/HelpTest.java

     */
    class HelpTest {
    
        private Help help;
    
        @BeforeEach
        void setUp() {
            help = new Help();
        }
    
        private UpgradeContext createMockContext() {
            return TestUtils.createMockContext();
        }
    
        @Test
        void testHelpExecuteReturnsZero() throws Exception {
            UpgradeContext context = createMockContext();
    
            int result = help.execute(context);
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Aug 29 12:46:51 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  5. compat/maven-compat/src/test/java/org/apache/maven/artifact/testutils/TestFileManager.java

     * KIND, either express or implied.  See the License for the
     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.artifact.testutils;
    
    import java.io.File;
    import java.io.IOException;
    import java.util.ArrayList;
    import java.util.Iterator;
    import java.util.List;
    
    import org.codehaus.plexus.util.FileUtils;
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Sep 17 10:01:14 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  6. 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")
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sat Jun 07 06:22:47 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  7. 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")
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 10:39:17 UTC 2025
    - 4.9K bytes
    - Viewed (0)
Back to top