From 7984a1ec3fa63e4e15517087b895be53c40de147 Mon Sep 17 00:00:00 2001 From: Nick Burch Date: Thu, 20 Feb 2014 23:20:19 +0000 Subject: [PATCH] More helpful visio v5 exception, see bug #56171 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1570388 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/org/apache/poi/hdgf/pointers/PointerFactory.java | 2 +- .../org/apache/poi/hdgf/pointers/TestPointerFactory.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scratchpad/src/org/apache/poi/hdgf/pointers/PointerFactory.java b/src/scratchpad/src/org/apache/poi/hdgf/pointers/PointerFactory.java index fb97d6e2b8..bf3a567778 100644 --- a/src/scratchpad/src/org/apache/poi/hdgf/pointers/PointerFactory.java +++ b/src/scratchpad/src/org/apache/poi/hdgf/pointers/PointerFactory.java @@ -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); } diff --git a/src/scratchpad/testcases/org/apache/poi/hdgf/pointers/TestPointerFactory.java b/src/scratchpad/testcases/org/apache/poi/hdgf/pointers/TestPointerFactory.java index b8aa155888..54e8eccc7f 100644 --- a/src/scratchpad/testcases/org/apache/poi/hdgf/pointers/TestPointerFactory.java +++ b/src/scratchpad/testcases/org/apache/poi/hdgf/pointers/TestPointerFactory.java @@ -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()); } } -- 2.39.5