diff options
author | Valerij Fredriksen <valerij92@gmail.com> | 2018-10-30 22:09:53 +0100 |
---|---|---|
committer | Valerij Fredriksen <valerij92@gmail.com> | 2018-10-30 22:09:53 +0100 |
commit | ee101cda2bd471d66540bcb9f129dd2b0fa6d113 (patch) | |
tree | 188bfb68576616de9773e383fa4ebba1c4b293e5 /vespa-http-client | |
parent | ef0b462ee638974706820a422f5fa2692ebb62f4 (diff) |
Remove redundant throws
Diffstat (limited to 'vespa-http-client')
-rw-r--r-- | vespa-http-client/src/test/java/com/yahoo/vespa/http/client/runner/JsonReaderTest.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/vespa-http-client/src/test/java/com/yahoo/vespa/http/client/runner/JsonReaderTest.java b/vespa-http-client/src/test/java/com/yahoo/vespa/http/client/runner/JsonReaderTest.java index 16a8861d227..f1c4a46dffc 100644 --- a/vespa-http-client/src/test/java/com/yahoo/vespa/http/client/runner/JsonReaderTest.java +++ b/vespa-http-client/src/test/java/com/yahoo/vespa/http/client/runner/JsonReaderTest.java @@ -101,9 +101,9 @@ public class JsonReaderTest { final AtomicInteger numSent = new AtomicInteger(0); @Test - public void testReadNoocument() throws Exception { + public void testReadNoDocument() throws Exception { InputStream inputStream = new ByteArrayInputStream( - (" " ).getBytes(StandardCharsets.UTF_8)); + " ".getBytes(StandardCharsets.UTF_8)); JsonReader.read(inputStream, session, numSent); inputStream.close(); assertThat(session.documentIds.size(), is(0)); @@ -186,20 +186,20 @@ public class JsonReaderTest { } @Test(expected=RuntimeException.class) - public void testBadJsonCommaAfterLastElement() throws Exception { + public void testBadJsonCommaAfterLastElement() { InputStream inputStream = new ByteArrayInputStream( ("["+ doc1 + ",]" ).getBytes(StandardCharsets.UTF_8)); JsonReader.read(inputStream, session, numSent); } @Test(expected=RuntimeException.class) - public void testTotalGarbage() throws Exception { + public void testTotalGarbage() { InputStream inputStream = new ByteArrayInputStream(("garbage" ).getBytes(StandardCharsets.UTF_8)); JsonReader.read(inputStream, session, numSent); } @Test(expected=RuntimeException.class) - public void testTwoDocIds() throws Exception { + public void testTwoDocIds() { InputStream inputStream = new ByteArrayInputStream(("[{\"remove\": \"id\", \"update\": \"id:\"}]" .getBytes(StandardCharsets.UTF_8))); JsonReader.read(inputStream, session, numSent); |