mirror of
https://github.com/apache/maven-mvnd.git
synced 2025-09-24 21:35:15 +00:00
Add missing assertion in the test
This commit is contained in:
@@ -23,6 +23,8 @@ import org.mvndaemon.mvnd.client.Client;
|
|||||||
import org.mvndaemon.mvnd.client.DaemonParameters;
|
import org.mvndaemon.mvnd.client.DaemonParameters;
|
||||||
import org.mvndaemon.mvnd.junit.MvndTest;
|
import org.mvndaemon.mvnd.junit.MvndTest;
|
||||||
|
|
||||||
|
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||||
|
|
||||||
@MvndTest(projectDir = "src/test/projects/exec-output")
|
@MvndTest(projectDir = "src/test/projects/exec-output")
|
||||||
public class ExecOutputTest {
|
public class ExecOutputTest {
|
||||||
|
|
||||||
@@ -36,9 +38,9 @@ public class ExecOutputTest {
|
|||||||
void cleanInstall() throws IOException, InterruptedException {
|
void cleanInstall() throws IOException, InterruptedException {
|
||||||
|
|
||||||
final TestClientOutput output = new TestClientOutput();
|
final TestClientOutput output = new TestClientOutput();
|
||||||
client.execute(output, "clean", "verify", "-e", "-Dmvnd.log.level=DEBUG").assertSuccess();
|
client.execute(output, "clean", "verify", "-e", "-B", "-Dmvnd.log.level=DEBUG").assertSuccess();
|
||||||
output.messagesToString()
|
assertTrue(output.messagesToString()
|
||||||
.contains("ProjectLogMessage{projectId='exec-output', message='[INFO] [stdout] Hello world!'}");
|
.contains("ProjectLogMessage{projectId='exec-output', message='[INFO] [stdout] Hello world!'}"));
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user