16 lines
511 B
Plaintext
16 lines
511 B
Plaintext
import java.io.*;
|
|
import org.codehaus.plexus.util.FileUtils;
|
|
|
|
|
|
String log = FileUtils.fileRead( new File( basedir, "build.log" ) );
|
|
String expected = "5 tests, 5 assertions, 0 failures, 0 errors, 0 skips";
|
|
if ( !log.contains( expected ) )
|
|
{
|
|
throw new RuntimeException( "log file does not contain '" + expected + "'" );
|
|
}
|
|
|
|
expected = "4 tests, 4 assertions, 0 failures, 0 errors, 0 skips";
|
|
if ( !log.contains( expected ) )
|
|
{
|
|
throw new RuntimeException( "log file does not contain '" + expected + "'" );
|
|
} |