From edf11d48ed69def3a3183f3e932780f659af6b35 Mon Sep 17 00:00:00 2001 From: depryf Date: Thu, 12 Oct 2023 15:22:52 -0400 Subject: [PATCH] More coverage! --- .../java/com/imsweb/naaccr/api/client/NaaccrApiClientTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/test/java/com/imsweb/naaccr/api/client/NaaccrApiClientTest.java b/src/test/java/com/imsweb/naaccr/api/client/NaaccrApiClientTest.java index 65600a0..30ad4cb 100644 --- a/src/test/java/com/imsweb/naaccr/api/client/NaaccrApiClientTest.java +++ b/src/test/java/com/imsweb/naaccr/api/client/NaaccrApiClientTest.java @@ -123,6 +123,9 @@ public void testGetDataItem() throws IOException { Assert.assertNull(item.getVersionImplemented()); Assert.assertEquals(2006, item.getYearRetired().intValue()); Assert.assertEquals("11", item.getVersionRetired()); + + // a bad request + Assert.assertThrows(IOException.class, () -> client.getDataItem(NAACCR_LATEST, "unknown")); } @Test