]> source.dussan.org Git - poi.git/commitdiff
More helpful visio v5 exception, see bug #56171
authorNick Burch <nick@apache.org>
Thu, 20 Feb 2014 23:20:19 +0000 (23:20 +0000)
committerNick Burch <nick@apache.org>
Thu, 20 Feb 2014 23:20:19 +0000 (23:20 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1570388 13f79535-47bb-0310-9956-ffa450edef68

src/scratchpad/src/org/apache/poi/hdgf/pointers/PointerFactory.java
src/scratchpad/testcases/org/apache/poi/hdgf/pointers/TestPointerFactory.java

index fb97d6e2b8eba2eab9fede7dd27ead45f75e61e0..bf3a567778dbc9ebb07fe42d8dbb2b7bd21f8610 100644 (file)
@@ -42,7 +42,7 @@ public final class PointerFactory {
 
                        return p;
                } else if(version == 5) {
-                       throw new RuntimeException("TODO");
+                       throw new RuntimeException("TODO Support v5 Pointers");
                } else {
                        throw new IllegalArgumentException("Visio files with versions below 5 are not supported, yours was " + version);
                }
index b8aa155888bf2819c82dea04c9d379b33c38e4f5..54e8eccc7f4b20c6e30544011e1543c2d8686d90 100644 (file)
@@ -57,7 +57,7 @@ public final class TestPointerFactory extends TestCase {
                        fail();
                } catch(RuntimeException e) {
                        // Still to do
-                       assertEquals("TODO", e.getMessage());
+                       assertEquals("TODO Support v5 Pointers", e.getMessage());
                }
        }