diff options
author | aclement <aclement> | 2004-02-25 14:09:12 +0000 |
---|---|---|
committer | aclement <aclement> | 2004-02-25 14:09:12 +0000 |
commit | 712e3f3c4201b7e20b21542b23ff5ca64758e026 (patch) | |
tree | 9895e3bf1b2ec59f490370b0b825604c21c73c48 | |
parent | fbc0aa305ea367e5fbeb99acf9907ae3a155f16a (diff) | |
download | aspectj-712e3f3c4201b7e20b21542b23ff5ca64758e026.tar.gz aspectj-712e3f3c4201b7e20b21542b23ff5ca64758e026.zip |
Bit more diagnostic info in that test that fails on the build machine - it works for me :(
-rw-r--r-- | ajde/testsrc/org/aspectj/ajde/ReweavableTestCase.java | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/ajde/testsrc/org/aspectj/ajde/ReweavableTestCase.java b/ajde/testsrc/org/aspectj/ajde/ReweavableTestCase.java index 4f9608d55..087b7889e 100644 --- a/ajde/testsrc/org/aspectj/ajde/ReweavableTestCase.java +++ b/ajde/testsrc/org/aspectj/ajde/ReweavableTestCase.java @@ -179,17 +179,20 @@ public class ReweavableTestCase extends AjdeTestCase { File fLog = openFile("bin/Logger.class"); assertTrue("bin/CalculatePI.class should exist?!?",fCalc.exists()); assertTrue("bin/Logger.class should exist?!?",fLog.exists()); - System.out.println("CalculatePI.class is of size: "+fCalc.length()); - System.out.println("Logger.class is of size: "+fLog.length()); + int calclen = (int)fCalc.length(); + int loglen = (int)fLog.length(); + System.out.println("CalculatePI.class is of size: "+calclen); + System.out.println("Logger.class is of size: "+loglen); assertTrue("Reweavable version should be larger than non-reweavable version of CalculatePI", - fCalc.length()>nonreweavesize_CalculatePI); + calclen>nonreweavesize_CalculatePI); assertTrue("Reweavable version should be larger than non-reweavable version of Logger", - fLog.length()>nonreweavesize_Logger); + loglen>nonreweavesize_Logger); - assertTrue("Reweavable (with compression) version should be smaller than reweavable (without compression) version of CalculatePI", - fCalc.length()<reweavablesize_CalculatePI); - assertTrue("Reweavable (with compression) version should be smaller than reweavable (without compression) version of Logger", - fLog.length()<reweavablesize_Logger); + assertTrue("Reweavable (with compression) version should be smaller than reweavable (without compression) version of CalculatePI:" +
" Compressed version:"+calclen+"bytes Non-compressed version:"+reweavablesize_CalculatePI+"bytes", + calclen<reweavablesize_CalculatePI); + assertTrue("Reweavable (with compression) version should be smaller than reweavable (without compression) version of Logger"+ + " Compressed version:"+loglen+"bytes Non-compressed version:"+reweavablesize_Logger+"bytes", + loglen<reweavablesize_Logger); System.out.println("\n\n\n"); } |