props.setProperty("test.webdav.uri",
"webdav://vfsusr:vfs%2f%25\\te:st@10.0.1.54/vfstest");
props.setProperty("test.sftp.uri",
"sftp://vfsusr:vfs%2f%25\\te:st@10.0.1.54/vfstest");
Test tests[] = new Test[]
{
// SmbProviderTestCase.suite(),
// LocalProviderTestCase.suite(),
// FtpProviderTestCase.suite(),
// UrlProviderHttpTestCase.suite(),
// VirtualProviderTestCase.suite(),
// TemporaryProviderTestCase.suite(),
// UrlProviderTestCase.suite(),
// ResourceProviderTestCase.suite(),
// HttpProviderTestCase.suite(),
// WebdavProviderTestCase.suite(),
SftpProviderTestCase.suite(),
// JarProviderTestCase.suite(),
// NestedJarTestCase.suite(),
// ZipProviderTestCase.suite(),
// NestedZipTestCase.suite(),
// TarProviderTestCase.suite(),
// TgzProviderTestCase.suite(),
// Tbz2ProviderTestCase.suite(),
// NestedTarTestCase.suite(),
// NestedTgzTestCase.suite(),
// NestedTbz2TestCase.suite(),
};
TestResult result = new TestResult()
{
public void startTest(Test test)
{
System.out.println("start " + test);
System.out.flush();
}
public void endTest(Test test)
{
// System.err.println("end " + test);
}
public synchronized void addError(Test test, Throwable throwable)
{
// throw new RuntimeException(throwable.getMessage());
throwable.printStackTrace();
}
public synchronized void addFailure(Test test,
AssertionFailedError assertionFailedError)
{
// throw new RuntimeException(assertionFailedError.getMessage());
assertionFailedError.printStackTrace();
}
};
for (int i = 0; i < tests.length; i++)
{
System.out.println("start test#" + i);
System.out.flush();
Test test = tests[i];
test.run(result);
// break;
}
}