Skip to content

Commit

Permalink
Don't use methods from java 8
Browse files Browse the repository at this point in the history
current project target is java 7
  • Loading branch information
slawekjaranowski committed Mar 9, 2022
1 parent 184c920 commit dfcdd55
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/test/java/org/apache/maven/it/Embedded3xLauncherTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ public class Embedded3xLauncherTest
{
@Rule
public TemporaryFolder temporaryFolder = new TemporaryFolder();

private Embedded3xLauncher launcher;

private final String workingDir = Paths.get( "src/test/resources" ).toAbsolutePath().toString();

@Test
Expand All @@ -46,10 +46,9 @@ public void testWithClasspath() throws Exception
launcher = Embedded3xLauncher.createFromClasspath();
File logFile = temporaryFolder.newFile( "build.log" );

int exitCode = launcher.run( new String[]{ "clean" }, new Properties(), workingDir, logFile );
int exitCode = launcher.run( new String[] {"clean"}, new Properties(), workingDir, logFile );

assertThat( "exit code unexpected, build log: " + System.lineSeparator() +
String.join(System.lineSeparator(), Files.readAllLines( logFile.toPath() ) ), exitCode, is ( 0 ) );
new String( Files.readAllBytes( logFile.toPath() ) ), exitCode, is( 0 ) );
}

}

0 comments on commit dfcdd55

Please sign in to comment.