Add missing assertion in the test

This commit is contained in:
Guillaume Nodet
2021-01-14 15:03:21 +01:00
parent eeb17ee18a
commit 642d06480b

View File

@@ -23,6 +23,8 @@ import org.mvndaemon.mvnd.client.Client;
import org.mvndaemon.mvnd.client.DaemonParameters;
import org.mvndaemon.mvnd.junit.MvndTest;
import static org.junit.jupiter.api.Assertions.assertTrue;
@MvndTest(projectDir = "src/test/projects/exec-output")
public class ExecOutputTest {
@@ -36,9 +38,9 @@ public class ExecOutputTest {
void cleanInstall() throws IOException, InterruptedException {
final TestClientOutput output = new TestClientOutput();
client.execute(output, "clean", "verify", "-e", "-Dmvnd.log.level=DEBUG").assertSuccess();
output.messagesToString()
.contains("ProjectLogMessage{projectId='exec-output', message='[INFO] [stdout] Hello world!'}");
client.execute(output, "clean", "verify", "-e", "-B", "-Dmvnd.log.level=DEBUG").assertSuccess();
assertTrue(output.messagesToString()
.contains("ProjectLogMessage{projectId='exec-output', message='[INFO] [stdout] Hello world!'}"));
}
}