Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 30 of 32 for thenReturn (0.07 seconds)

  1. impl/maven-core/src/test/java/org/apache/maven/graph/FilteredProjectDependencyGraphTest.java

            FilteredProjectDependencyGraph graph =
                    new FilteredProjectDependencyGraph(projectDependencyGraph, List.of(aProject));
    
            when(projectDependencyGraph.getDownstreamProjects(bProject, transitive)).thenReturn(List.of(cProject));
    
            graph.getDownstreamProjects(bProject, transitive);
            graph.getDownstreamProjects(bProject, transitive);
    
            verify(projectDependencyGraph).getDownstreamProjects(bProject, transitive);
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Jun 04 20:56:29 GMT 2025
    - 3K bytes
    - Click Count (0)
  2. impl/maven-core/src/test/java/org/apache/maven/internal/transformation/impl/ConsumerPomArtifactTransformerTest.java

            RepositorySystemSession systemSessionMock = Mockito.mock(RepositorySystemSession.class);
            SessionData sessionDataMock = Mockito.mock(SessionData.class);
            when(systemSessionMock.getData()).thenReturn(sessionDataMock);
    
            Path beforePomFile =
                    Paths.get("src/test/resources/projects/transform/before.pom").toAbsolutePath();
            Path afterPomFile =
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Nov 06 18:32:25 GMT 2025
    - 13.3K bytes
    - Click Count (0)
  3. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/CheckTest.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());
    
                    checkGoal.execute(context);
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Sat Jun 07 06:22:47 GMT 2025
    - 4.9K bytes
    - Click Count (0)
  4. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/PluginUpgradeStrategyTest.java

            void shouldBeApplicableWhenPluginsOptionTrue() {
                UpgradeOptions options = mock(UpgradeOptions.class);
                when(options.plugins()).thenReturn(Optional.of(true));
                when(options.all()).thenReturn(Optional.empty());
    
                UpgradeContext context = createMockContext(options);
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Nov 18 18:03:26 GMT 2025
    - 27.8K bytes
    - Click Count (0)
  5. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/AbstractUpgradeGoalTest.java

                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)
                upgradeGoal.testExecuteWithTargetModel(context, "4.0.0");
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Nov 18 18:03:26 GMT 2025
    - 13.7K bytes
    - Click Count (0)
  6. impl/maven-core/src/test/java/org/apache/maven/internal/transformation/impl/ConsumerPomBuilderTest.java

                            Mockito.any(PathScope.class)))
                    .thenReturn(resolverResult);
            Node node = Mockito.mock(Node.class);
            Mockito.when(resolverResult.getRoot()).thenReturn(node);
            Node child = Mockito.mock(Node.class);
            Mockito.when(node.getChildren()).thenReturn(List.of(child));
    
            services.addAll(List.of(
                    new DefaultRequestCacheFactory(),
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Nov 06 18:32:25 GMT 2025
    - 7.2K bytes
    - Click Count (0)
  7. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/InferenceStrategyTest.java

            void shouldBeApplicableWhenInferOptionTrue() {
                UpgradeOptions options = mock(UpgradeOptions.class);
                when(options.infer()).thenReturn(Optional.of(true));
                when(options.all()).thenReturn(Optional.empty());
    
                UpgradeContext context = createMockContext(options);
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Nov 18 18:03:26 GMT 2025
    - 35.2K bytes
    - Click Count (0)
  8. impl/maven-core/src/test/java/org/apache/maven/lifecycle/DefaultLifecyclesTest.java

            PlexusContainer mockedPlexusContainer = mock(PlexusContainer.class);
            when(mockedPlexusContainer.lookupMap(Lifecycle.class)).thenReturn(lifeCycles);
    
            DefaultLifecycles dl = new DefaultLifecycles(
                    new DefaultLifecycleRegistry(
                            List.of(new DefaultLifecycleRegistry.LifecycleWrapperProvider(mockedPlexusContainer))),
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Sep 17 10:01:14 GMT 2025
    - 3.9K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/hash/HashingInputStreamTest.java

        super.setUp();
        hasher = mock(Hasher.class);
        hashFunction = mock(HashFunction.class);
        buffer = new ByteArrayInputStream(testBytes);
    
        when(hashFunction.newHasher()).thenReturn(hasher);
      }
    
      public void testRead_putSingleByte() throws Exception {
        HashingInputStream in = new HashingInputStream(hashFunction, buffer);
    
        int b = in.read();
        assertEquals('y', b);
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 5K bytes
    - Click Count (0)
  10. impl/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/DefaultLifecyclesStub.java

                lifeCycles.put(s, lifecycle);
            }
    
            PlexusContainer mockedContainer = mock(PlexusContainer.class);
            when(mockedContainer.lookupMap(Lifecycle.class)).thenReturn(lifeCycles);
    
            DefaultLifecycleRegistry reg = new DefaultLifecycleRegistry();
            return new DefaultLifecycles(reg, new DefaultLookup(mockedContainer));
        }
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 4.5K bytes
    - Click Count (0)
Back to Top