Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 15 of 15 for createMockContext (0.38 sec)

  1. src/test/java/jcifs/ntlmssp/Type2MessageTest.java

        private static final String TEST_HOSTNAME = "TEST_HOSTNAME";
    
        /**
         * Helper method to create a fully mocked CIFSContext with all necessary dependencies
         */
        private CIFSContext createMockContext() {
            CIFSContext mockContext = mock(CIFSContext.class);
            Configuration mockConfig = mock(Configuration.class);
            NameServiceClient mockNameServiceClient = mock(NameServiceClient.class);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 38.9K bytes
    - Viewed (0)
  2. 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)
  3. 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");
    
    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/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)
  5. 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 {
    
            @ParameterizedTest
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 38.8K bytes
    - Viewed (0)
Back to top