From: David ‘Bombe’ Roden Date: Mon, 21 Oct 2013 05:11:12 +0000 (+0200) Subject: Remove declared exception. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=c738ef8092cf128491a40be939ab84c8d034905b;p=Sone.git Remove declared exception. --- 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));