Unify handling of Mode too
[zxing.git] / core / test / src / com / google / zxing / qrcode / decoder / VersionTestCase.java
index f90ffa1..33755be 100644 (file)
@@ -24,11 +24,11 @@ import junit.framework.TestCase;
  */
 public final class VersionTestCase extends TestCase {
 
-  public void testVersionForNumber() throws ReaderException {
+  public void testVersionForNumber() {
     try {
       Version.getVersionForNumber(0);
       fail("Should have thrown an exception");
-    } catch (ReaderException re) {
+    } catch (IllegalArgumentException iae) {
       // good
     }
     for (int i = 1; i <= 40; i++) {