Print failing test output
@@ -81,6 +81,7 @@ public class ServerConfigPropertiesTest {
List<String> appDirMatches = new ArrayList<String>();
List<String> appInstalledMatches = new ArrayList<String>();
+ String testingOutput = "--------------";
try {
//Create server and copy config
InvocationRequest createRequest = new DefaultInvocationRequest()
@@ -119,6 +120,7 @@ public class ServerConfigPropertiesTest {
while (s.hasNextLine()) {
String line = s.nextLine();
+ testingOutput += "\n" + line;
if (pattern1.matcher(line).find()) {
duplicateMatches.add(line);
} else if (pattern2.matcher(line).find()) {
@@ -129,12 +131,14 @@ public class ServerConfigPropertiesTest {
}
} catch (Exception e) {}
+ testingOutput += "--------------";
s.close();
in.close();
serverOutput.close();
//Check app name/appsDir resolved correctly during create, deploy, and start
Assert.assertTrue("Found duplicate application message in console output", duplicateMatches.size() == 0);
+ Assert.assertTrue(testingOutput, false); // testing output
Assert.assertEquals("appsDirMessage size: " + appDirMatches.size(), 1, appDirMatches.size());
Assert.assertTrue("Did not find appsDirectory message in console output", appDirMatches.size() == 1);
Assert.assertTrue("Did not find app install message in console output", appInstalledMatches.size() == 1);
