Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for thenCallRealMethod (0.06 sec)

  1. api/maven-api-core/src/test/java/org/apache/maven/api/SourceRootTest.java

            when(project.getBuild()).thenReturn(build);
            when(project.getBasedir()).thenReturn(Path.of("myproject"));
            when(project.getOutputDirectory(any(ProjectScope.class))).thenCallRealMethod();
    
            assertEquals(Path.of("myproject", "target", "classes"), targetPath(project));
    
            scope = ProjectScope.TEST;
            assertEquals(Path.of("myproject", "target", "test-classes"), targetPath(project));
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sun Oct 26 17:22:14 UTC 2025
    - 2.9K bytes
    - Viewed (0)
Back to top