From c738ef8092cf128491a40be939ab84c8d034905b Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 21 Oct 2013 07:11:12 +0200 Subject: [PATCH] Remove declared exception. --- src/test/java/net/pterodactylus/sone/core/SoneParserTest.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/test/java/net/pterodactylus/sone/core/SoneParserTest.java b/src/test/java/net/pterodactylus/sone/core/SoneParserTest.java index 06637c3..baa3fdc 100644 --- a/src/test/java/net/pterodactylus/sone/core/SoneParserTest.java +++ b/src/test/java/net/pterodactylus/sone/core/SoneParserTest.java @@ -46,22 +46,22 @@ public class SoneParserTest { } @Test - public void verifyThatAnInvalidXmlDocumentIsNotParsed() throws UnsupportedEncodingException, SoneException { + public void verifyThatAnInvalidXmlDocumentIsNotParsed() throws UnsupportedEncodingException { assertThat(soneParser.parseSone(database, originalSone, getInputStream("This is not valid XML.")), nullValue()); } @Test - public void verifyThatANegativeProtocolVersionCausesAnError() throws SoneException { + public void verifyThatANegativeProtocolVersionCausesAnError() { assertThat(soneParser.parseSone(database, originalSone, soneXmlBuilder.setProtocolVersion("-1").get()), nullValue()); } @Test - public void verifyThatATooLargeProtocolVersionCausesAnError() throws SoneException { + public void verifyThatATooLargeProtocolVersionCausesAnError() { assertThat(soneParser.parseSone(database, originalSone, soneXmlBuilder.setProtocolVersion("1").get()), nullValue()); } @Test - public void verifyThatAMissingClientCausesTheOriginalClientToBeUsed() throws SoneException { + public void verifyThatAMissingClientCausesTheOriginalClientToBeUsed() { Sone sone = soneParser.parseSone(database, originalSone, soneXmlBuilder.removeClientInformation().get()); assertThat(sone, notNullValue()); assertThat(sone.getClient(), notNullValue()); @@ -69,7 +69,7 @@ public class SoneParserTest { } @Test - public void verifyThatTheCreatedSoneMeetsAllExpectations() throws SoneException { + public void verifyThatTheCreatedSoneMeetsAllExpectations() { Sone sone = soneParser.parseSone(database, originalSone, soneXmlBuilder.get()); assertThat(sone, notNullValue()); assertThat(sone.getTime(), is(1000L)); -- 2.7.4