X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Ftest%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Ftext%2FSoneTextParserTest.java;h=7baceaab2ca59b4c3fa11eed4897a08a007423de;hb=4c8a20cadda6c449e90300e5fa0a79b8a20700aa;hp=7de50fb5a18f9ab7eb66bc2489f940963ae1a4c2;hpb=480691a26222e035e53bda56029524e160fdf898;p=Sone.git diff --git a/src/test/java/net/pterodactylus/sone/text/SoneTextParserTest.java b/src/test/java/net/pterodactylus/sone/text/SoneTextParserTest.java index 7de50fb..7baceaa 100644 --- a/src/test/java/net/pterodactylus/sone/text/SoneTextParserTest.java +++ b/src/test/java/net/pterodactylus/sone/text/SoneTextParserTest.java @@ -41,6 +41,7 @@ public class SoneTextParserTest extends TestCase { * @throws IOException * if an I/O error occurs */ + @SuppressWarnings("static-method") public void testPlainText() throws IOException { SoneTextParser soneTextParser = new SoneTextParser(null, null); Iterable parts; @@ -67,6 +68,7 @@ public class SoneTextParserTest extends TestCase { * @throws IOException * if an I/O error occurs */ + @SuppressWarnings("static-method") public void testKSKLinks() throws IOException { SoneTextParser soneTextParser = new SoneTextParser(null, null); Iterable parts; @@ -93,7 +95,7 @@ public class SoneTextParserTest extends TestCase { * @throws IOException * if an I/O error occurs */ - @SuppressWarnings("synthetic-access") + @SuppressWarnings({ "synthetic-access", "static-method" }) public void testEmptyLinesAndSoneLinks() throws IOException { SoneTextParser soneTextParser = new SoneTextParser(new TestSoneProvider(), null); Iterable parts; @@ -119,7 +121,7 @@ public class SoneTextParserTest extends TestCase { * valid * @return The converted text */ - private String convertText(Iterable parts, Class... validClasses) { + private static String convertText(Iterable parts, Class... validClasses) { StringBuilder text = new StringBuilder(); for (Part part : parts) { assertNotNull("Part", part);