Search Options

Display Count
Sort
Preferred Language
Advanced Search

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

  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));
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Sun Oct 26 17:22:14 GMT 2025
    - 2.9K bytes
    - Click Count (0)
Back to Top