Skip to content

Commit

Permalink
fix IT test execute-compass-with-gems-from-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
abelsromero committed Jul 16, 2020
1 parent 2f20e77 commit a9194eb
Showing 1 changed file with 11 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
import java.io.*;
import java.util.*;
import org.codehaus.plexus.util.FileUtils;


String log = FileUtils.fileRead( new File( basedir, "build.log" ) );
String expected = "Successfully installed compass-";
if ( !log.contains( expected ) )
{
throw new RuntimeException( "log file does not contain '" + expected + "'" );
}
expected = "Successfully installed sass-";
if ( !log.contains( expected ) )
{
throw new RuntimeException( "log file does not contain '" + expected + "'" );
}
expected = "Individual stylesheets must be in the sass directory.";
if ( !log.contains( expected ) )

String installMessage = "Successfully installed ";
String[] expectedGems = new String[] { "compass-", "sass-", "rb-inotify-" };

for ( String expectedGem: expectedGems )
{
throw new RuntimeException( "log file does not contain '" + expected + "'" );
String expected = installMessage + expectedGem;
if ( !log.contains( expected ) )
{
throw new RuntimeException( "log file does not contain '" + expected + "'" );
}
}

0 comments on commit a9194eb

Please sign in to comment.