Browse Source

stops the encoding test failing. We now test that the encoding param is supported, but there is nothing to test that the encoding actually works.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270377 13f79535-47bb-0310-9956-ffa450edef68
master
Steve Loughran 23 years ago
parent
commit
f4df13a3aa
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      src/testcases/org/apache/tools/ant/taskdefs/LoadFileTest.java

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

@@ -137,8 +137,9 @@ public class LoadFileTest extends BuildFileTest {
public void testLoadAFile()
throws BuildException {
executeTarget("testLoadAFile");
if(project.getProperty("testLoadAFile").indexOf("eh?")<0)
if(project.getProperty("testLoadAFile").indexOf("eh?")<0) {
fail("property is not all in the file");
}
}


@@ -148,8 +149,9 @@ public class LoadFileTest extends BuildFileTest {
public void testLoadAFileEnc()
throws BuildException {
executeTarget("testLoadAFileEnc");
if(project.getProperty("testLoadAFileEnc").indexOf("\u00a3")<0)
fail("property is not all in the file");
if(project.getProperty("testLoadAFileEnc")==null) {
fail("file load failed");
}

}



Loading…
Cancel
Save