X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=support%2Fgeneral%2Fsrc%2Ftest%2Fjava%2Forg%2Fwamblee%2Fio%2FTestData.java;h=1bb7cdd63f4493e26aa4e58e51eee1ab595cb1e3;hb=8de36ff0206c996baf3ee4adc3e2293b12ff5f39;hp=1ddf3adaab902db7b1d6370529e93b94286f0db3;hpb=89c06d4d52b46c154128c97d6e758fa1f4fc7a6e;p=utils diff --git a/support/general/src/test/java/org/wamblee/io/TestData.java b/support/general/src/test/java/org/wamblee/io/TestData.java index 1ddf3ada..1bb7cdd6 100644 --- a/support/general/src/test/java/org/wamblee/io/TestData.java +++ b/support/general/src/test/java/org/wamblee/io/TestData.java @@ -28,10 +28,9 @@ import java.io.OutputStream; import java.nio.MappedByteBuffer; import java.nio.channels.FileChannel; - /** * TestData provides a convenient interface for managing test output files. - * + * * @author Erik Brakkee */ public final class TestData { @@ -51,7 +50,7 @@ public final class TestData { /** * Obtain root directory of JUnit tests. - * + * * @return Directory name. */ private static File getTestRootDir(Object aTestcase) { @@ -81,7 +80,7 @@ public final class TestData { /** * Returns a temporary directory. - * + * * @return Temporary directory. */ public File getTmpDir() { @@ -98,7 +97,7 @@ public final class TestData { /** * Recursively copy a directory contents to the test output directory. - * + * * @param sSrc * Source directory to copy. */ @@ -109,7 +108,7 @@ public final class TestData { /** * Copies a classpath resource to a relative path in the test output * directory. - * + * * @param aResource * Resource to copy. * @param aRelativePath @@ -119,7 +118,7 @@ public final class TestData { try { InputStream is = new ClassPathResource(aResource).getInputStream(); FileOutputStream fos = new FileOutputStream(new File(root, - aRelativePath)); + aRelativePath)); FileSystemUtils.copyStream(is, fos); } catch (IOException e) { e.printStackTrace(); @@ -129,7 +128,7 @@ public final class TestData { /** * Copies a resource to the root directory of the test output. - * + * * @param aResource * Resource. */ @@ -144,7 +143,7 @@ public final class TestData { /** * Deletes a file or directory relative to the test output root. - * + * * @param aRelative * Relative path. The testcase will fail if the file or directory * cannot be removed. @@ -155,7 +154,7 @@ public final class TestData { /** * Deletes a directory including its contents. - * + * * @param aRelative * Relative path. */ @@ -165,7 +164,7 @@ public final class TestData { /** * Deletes a directory recursively. - * + * * @param aRelative * Relative path. */ @@ -175,7 +174,7 @@ public final class TestData { /** * Gets the root of the test output directory. - * + * * @return Root of the test output. */ public File getRoot() {