Browse Source

Use assertEquals instead of explicit check/fail combo.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271798 13f79535-47bb-0310-9956-ffa450edef68
master
Magesh Umasankar 23 years ago
parent
commit
aac5436dc6
1 changed files with 7 additions and 7 deletions
  1. +7
    -7
      src/testcases/org/apache/tools/ant/taskdefs/LoadFileTest.java

+ 7
- 7
src/testcases/org/apache/tools/ant/taskdefs/LoadFileTest.java View File

@@ -62,6 +62,7 @@ import java.io.File;
* Test the load file task * Test the load file task
* *
* @author Steve Loughran * @author Steve Loughran
* @author <a href="mailto:umagesh@apache.org">Magesh Umasankar</a>
* @created 10 December 2001 * @created 10 December 2001
*/ */
public class LoadFileTest extends BuildFileTest { public class LoadFileTest extends BuildFileTest {
@@ -163,7 +164,7 @@ public class LoadFileTest extends BuildFileTest {
} }


/** /**
* A unit test for JUnit
* Test FilterChain and FilterReaders
*/ */
public void testFilterChain() public void testFilterChain()
throws BuildException { throws BuildException {
@@ -174,15 +175,14 @@ public class LoadFileTest extends BuildFileTest {
} }


/** /**
* A unit test for JUnit
* Test StripJavaComments filterreader functionality.
*/ */
public void testStripJavaComments()
public final void testStripJavaComments()
throws BuildException { throws BuildException {
executeTarget("testStripJavaComments"); executeTarget("testStripJavaComments");
String expected = project.getProperty("expected");
if(!project.getProperty("testStripJavaComments").equals(expected)) {
fail("StripJavaComments broken");
}
final String expected = project.getProperty("expected");
final String generated = project.getProperty("testStripJavaComments");
assertEquals(expected, generated);
} }


/** /**


Loading…
Cancel
Save