You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sj...@apache.org on 2022/03/09 21:20:04 UTC
[maven-verifier] branch master updated: Don't use methods from java 8
This is an automated email from the ASF dual-hosted git repository.
sjaranowski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-verifier.git
The following commit(s) were added to refs/heads/master by this push:
new dfcdd55 Don't use methods from java 8
dfcdd55 is described below
commit dfcdd55a228f220e259e5dbffa46d552857a6408
Author: Slawomir Jaranowski <s....@gmail.com>
AuthorDate: Wed Mar 9 22:19:47 2022 +0100
Don't use methods from java 8
current project target is java 7
---
src/test/java/org/apache/maven/it/Embedded3xLauncherTest.java | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/src/test/java/org/apache/maven/it/Embedded3xLauncherTest.java b/src/test/java/org/apache/maven/it/Embedded3xLauncherTest.java
index fd0b333..af99d9d 100644
--- a/src/test/java/org/apache/maven/it/Embedded3xLauncherTest.java
+++ b/src/test/java/org/apache/maven/it/Embedded3xLauncherTest.java
@@ -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
@@ -46,10 +46,9 @@ public class Embedded3xLauncherTest
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 ) );
}
-
}