Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMykola Nikishov2016-12-19 15:17:37 -0500
committerPascal Rapicault2017-01-09 21:19:04 -0500
commit73a347f0e73c2422ba7fef05a5cf6ff47feb3fd8 (patch)
tree49ea04329f9c235658b5824ea9d2cbd44c5bb550
parentca9469ccdc21697101ad09cedb27f6d78c80ec98 (diff)
downloadrt.equinox.p2-73a347f0e73c2422ba7fef05a5cf6ff47feb3fd8.tar.gz
rt.equinox.p2-73a347f0e73c2422ba7fef05a5cf6ff47feb3fd8.tar.xz
rt.equinox.p2-73a347f0e73c2422ba7fef05a5cf6ff47feb3fd8.zip
Reason for failed assert that the log file doesn't contain message
Provide details on what lines are missing from what log file. Change-Id: I15f0a0ee37feef6470ffbea631e27ee987a9c0e3 Signed-off-by: Mykola Nikishov <mn@mn.com.ua>
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/AbstractProvisioningTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/AbstractProvisioningTest.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/AbstractProvisioningTest.java
index a268a8667..7e051f8d0 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/AbstractProvisioningTest.java
+++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/AbstractProvisioningTest.java
@@ -1497,7 +1497,7 @@ public abstract class AbstractProvisioningTest extends TestCase {
} finally {
reader.close();
}
- assertTrue(false);
+ fail(String.format("Log file %s doesn't contain lines %s", log.getCanonicalPath(), Arrays.toString(lines)));
}
/**
@@ -1524,7 +1524,7 @@ public abstract class AbstractProvisioningTest extends TestCase {
String line = reader.readLine();
if (line.indexOf(lines[idx]) >= 0) {
if (++idx >= lines.length) {
- assertTrue(false);
+ fail(String.format("Log file %s contains lines %s", log.getCanonicalPath(), Arrays.toString(lines)));
}
}
}

Back to the top