Methods Summary |
---|
public void | assertEqualContent(java.io.File expect, java.io.File result)
if (!result.exists()) {
fail("Expected file "+result+" doesn\'t exist");
}
InputStream inExpect = null;
InputStream inResult = null;
try {
inExpect = new BufferedInputStream(new FileInputStream(expect));
inResult = new BufferedInputStream(new FileInputStream(result));
int expectedByte = inExpect.read();
while (expectedByte != -1) {
assertEquals(expectedByte, inResult.read());
expectedByte = inExpect.read();
}
assertEquals("End of file", -1, inResult.read());
} finally {
if (inResult != null) {
inResult.close();
}
if (inExpect != null) {
inExpect.close();
}
}
|
public void | setUp()
configureProject("src/etc/testcases/taskdefs/fixcrlf/build.xml");
|
public void | tearDown()
executeTarget("cleanup");
|
public void | test1()
executeTarget("test1");
|
public void | test2()
executeTarget("test2");
|
public void | test3()
executeTarget("test3");
|
public void | test4()
executeTarget("test4");
|
public void | test5()
executeTarget("test5");
|
public void | test6()
executeTarget("test6");
|
public void | test7()
executeTarget("test7");
|
public void | test8()
executeTarget("test8");
|
public void | test9()
executeTarget("test9");
|
public void | testCannotDoubleEof()
executeTarget("testCannotDoubleEof");
|
public void | testCrCrLfSequenceDos()
executeTarget("testCrCrLfSequence-dos");
|
public void | testCrCrLfSequenceMac()
executeTarget("testCrCrLfSequence-mac");
|
public void | testCrCrLfSequenceUnix()
executeTarget("testCrCrLfSequence-unix");
|
public void | testCreateParentDirs()Bugzilla Report 20840
Will fail with an exception if the parent directories do not
get created.
executeTarget("createParentDirs");
|
public void | testEncoding()
executeTarget("testEncoding");
|
public void | testFilter1()
executeTarget("testFilter1");
|
public void | testFilter2()
executeTarget("testFilter2");
|
public void | testFilter3()
executeTarget("testFilter3");
|
public void | testFilter4()
executeTarget("testFilter4");
|
public void | testFilter5()
executeTarget("testFilter5");
|
public void | testFilter6()
executeTarget("testFilter6");
|
public void | testFilter7()
executeTarget("testFilter7");
|
public void | testFilter8()
executeTarget("testFilter8");
|
public void | testFilter9()
executeTarget("testFilter9");
|
public void | testFixFile()
executeTarget("testFixFile");
|
public void | testFixFileExclusive()
expectBuildExceptionContaining("testFixFileExclusive",
FixCRLF.ERROR_FILE_AND_SRCDIR, FixCRLF.ERROR_FILE_AND_SRCDIR);
|
public void | testFixlastDos()
executeTarget("testFixlastDos");
|
public void | testFixlastFalseMac()
executeTarget("testFixlastFalseMac");
|
public void | testLongLines()
executeTarget("testLongLines");
|
public void | testMacLines()
executeTarget("testMacLines");
|
public void | testNoOverwrite()
executeTarget("testNoOverwrite");
|
public void | testOutputEncoding()
executeTarget("testOutputEncoding");
|
public void | testPreserveLastModified()
executeTarget("testPreserveLastModified");
|
public void | testTabInLiteralInComment()
executeTarget("testTabInLiteralInComment");
|