Permalink
Browse files

JUnit now runs standalone.

  • Loading branch information...
1 parent 260fdfb commit 838bea56e6675d9fa9af99befb8ebcb77fdafa23 Shevek committed Jul 21, 2011
Binary file not shown.
View
Binary file not shown.
@@ -34,6 +34,8 @@ file.reference.commons-lang-2.5.jar=lib/runtime/commons-lang-2.5.jar
file.reference.commons-logging-1.1.1.jar=lib/runtime/commons-logging-1.1.1.jar
file.reference.hadoop-core-0.21.0-dev.jar=lib/runtime/hadoop-core-0.21.0-dev.jar
file.reference.hadoop-mapred-0.21.0-dev.jar=lib/runtime/hadoop-mapred-0.21.0-dev.jar
+file.reference.hamcrest-core-1.1.jar=lib/junit/hamcrest-core-1.1.jar
+file.reference.junit4-4.8.2.jar=lib/junit/junit4-4.8.2.jar
includes=**
jar.compress=false
javac.classpath=\
@@ -50,12 +52,12 @@ javac.target=1.5
javac.test.classpath=\
${javac.classpath}:\
${build.classes.dir}:\
- ${libs.junit.classpath}:\
- ${libs.junit_4.classpath}:\
${file.reference.commons-io-1.4-src.jar}:\
${file.reference.commons-io-1.4.jar}:\
${file.reference.commons-lang-2.5-src.jar}:\
- ${file.reference.commons-lang-2.5.jar}
+ ${file.reference.commons-lang-2.5.jar}:\
+ ${file.reference.junit4-4.8.2.jar}:\
+ ${file.reference.hamcrest-core-1.1.jar}
javac.test.processorpath=\
${javac.test.classpath}
javadoc.additionalparam=
@@ -11,6 +11,7 @@
import org.apache.commons.logging.LogFactory;
import org.junit.Test;
import static org.junit.Assert.*;
+import static org.junit.Assume.*;
/**
*
@@ -31,6 +32,7 @@ public void testBlockCompress() throws Exception {
LOG.info("Max memory is " + Runtime.getRuntime().maxMemory());
File file = new File(PATH);
+ assumeTrue("Huge test data file " + file + " does not exist.", file.isFile());
FileInputStream fi = new FileInputStream(new File(PATH));
DataInputStream di = new DataInputStream(fi);
int length = Math.min((int) file.length(), 512 * 1024 * 1024);

0 comments on commit 838bea5

Please sign in to comment.