Added rotation to unit test output for clarification.
authordswitkin <dswitkin@59b500cc-1b3d-0410-9834-0bbf25fbcc57>
Thu, 19 Jun 2008 16:41:40 +0000 (16:41 +0000)
committerdswitkin <dswitkin@59b500cc-1b3d-0410-9834-0bbf25fbcc57>
Thu, 19 Jun 2008 16:41:40 +0000 (16:41 +0000)
git-svn-id: http://zxing.googlecode.com/svn/trunk@450 59b500cc-1b3d-0410-9834-0bbf25fbcc57

core/test/src/com/google/zxing/common/AbstractBlackBoxTestCase.java

index 1e12976..44a7af7 100644 (file)
@@ -144,7 +144,7 @@ public abstract class AbstractBlackBoxTestCase extends TestCase {
     try {
       result = barcodeReader.decode(source);
     } catch (ReaderException re) {
-      System.out.println(re);
+      System.out.println(re + " (rotation: " + rotationInDegrees + ')');
       return false;
     }
 
@@ -165,7 +165,7 @@ public abstract class AbstractBlackBoxTestCase extends TestCase {
     try {
       result = barcodeReader.decode(source, TRY_HARDER_HINT);
     } catch (ReaderException re) {
-      fail("Normal mode succeeded but \"try harder\" failed");
+      fail("Normal mode succeeded but \"try harder\" failed (rotation: " + rotationInDegrees + ')');
       return false;
     }
     if (!expectedFormat.equals(result.getBarcodeFormat())) {