Search in sources :

Example 6 with LogSubject

use of com.google.copybara.util.console.testing.LogSubjects.LogSubject in project copybara by google.

the class TestingConsoleTest method testMessageTypeWrong2.

@Test
public void testMessageTypeWrong2() {
    console.info("bar");
    LogSubject logSubject = console.assertThat();
    expectAssertion(".*bar.*", () -> logSubject.matchesNext(MessageType.PROGRESS, "bar"));
}
Also used : LogSubject(com.google.copybara.util.console.testing.LogSubjects.LogSubject) Test(org.junit.Test)

Aggregations

LogSubject (com.google.copybara.util.console.testing.LogSubjects.LogSubject)6 Test (org.junit.Test)6