projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'release-0.8.4'
[Sone.git]
/
src
/
test
/
java
/
net
/
pterodactylus
/
sone
/
text
/
SoneTextParserTest.java
diff --git
a/src/test/java/net/pterodactylus/sone/text/SoneTextParserTest.java
b/src/test/java/net/pterodactylus/sone/text/SoneTextParserTest.java
index
d98d4ec
..
7baceaa
100644
(file)
--- a/
src/test/java/net/pterodactylus/sone/text/SoneTextParserTest.java
+++ b/
src/test/java/net/pterodactylus/sone/text/SoneTextParserTest.java
@@
-1,5
+1,5
@@
/*
/*
- * 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
*
* 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
@@
-41,6
+41,7
@@
public class SoneTextParserTest extends TestCase {
* @throws IOException
* if an I/O error occurs
*/
* @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;
public void testPlainText() throws IOException {
SoneTextParser soneTextParser = new SoneTextParser(null, null);
Iterable<Part> parts;
@@
-67,6
+68,7
@@
public class SoneTextParserTest extends TestCase {
* @throws IOException
* if an I/O error occurs
*/
* @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;
public void testKSKLinks() throws IOException {
SoneTextParser soneTextParser = new SoneTextParser(null, null);
Iterable<Part> parts;
@@
-93,7
+95,7
@@
public class SoneTextParserTest extends TestCase {
* @throws IOException
* if an I/O error occurs
*/
* @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;
public void testEmptyLinesAndSoneLinks() throws IOException {
SoneTextParser soneTextParser = new SoneTextParser(new TestSoneProvider(), null);
Iterable<Part> parts;
@@
-119,7
+121,7
@@
public class SoneTextParserTest extends TestCase {
* valid
* @return The converted text
*/
* 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);
StringBuilder text = new StringBuilder();
for (Part part : parts) {
assertNotNull("Part", part);