/*
- * Sone - SoneTextParserTest.java - Copyright © 2011 David Roden
+ * Sone - SoneTextParserTest.java - Copyright © 2011–2012 David Roden
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* @throws IOException
* if an I/O error occurs
*/
+ @SuppressWarnings("static-method")
public void testPlainText() throws IOException {
SoneTextParser soneTextParser = new SoneTextParser(null, null);
Iterable<Part> parts;
* @throws IOException
* if an I/O error occurs
*/
+ @SuppressWarnings("static-method")
public void testKSKLinks() throws IOException {
SoneTextParser soneTextParser = new SoneTextParser(null, null);
Iterable<Part> parts;
* @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<Part> parts;
* valid
* @return The converted text
*/
- private String convertText(Iterable<Part> parts, Class<?>... validClasses) {
+ private static String convertText(Iterable<Part> parts, Class<?>... validClasses) {
StringBuilder text = new StringBuilder();
for (Part part : parts) {
assertNotNull("Part", part);