-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix IT test execute-compass-with-gems-from-plugin
- Loading branch information
1 parent
2f20e77
commit a9194eb
Showing
1 changed file
with
11 additions
and
13 deletions.
There are no files selected for viewing
24 changes: 11 additions & 13 deletions
24
gem-maven-plugin/src/it/execute-compass-with-gems-from-plugin/verify.bsh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 + "'" ); | ||
} | ||
} |