Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
improve assert message
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/svn/trunk@348664 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
bodewig committed Nov 24, 2005
1 parent a109ce0 commit d1e867c9634bf2af63ebd75ea3d3582a37616982
Showing 1 changed file with 2 additions and 1 deletion.
@@ -131,7 +131,8 @@ private static final void assertDeleted(String log) {
private static final void assertAdded1(String log) {
int name = log.indexOf("<name><![CDATA[src/java/org/apache/bcel/"
+ "Repository.java]]></name>");
Assert.assertTrue(name > -1);
Assert.assertTrue("expected element for Repository.java, log was: "
+ log, name > -1);

int pathAfterName = log.indexOf("</path>", name);
Assert.assertTrue(pathAfterName > -1);

0 comments on commit d1e867c

Please sign in to comment.