X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Ftest%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Ftext%2FSoneTextParserTest.java;h=72860012d04ea0c66e8fd0ca495ce8a5e74b47be;hb=93bc432d6c92ba3c3c9a843b8bec377266a8bbb3;hp=76f375526f26553438793a7e7f19abc1e14bffc0;hpb=658a702c550e15bd3c868ed399621606eeb4ef20;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 76f3755..7286001 100644 --- a/src/test/java/net/pterodactylus/sone/text/SoneTextParserTest.java +++ b/src/test/java/net/pterodactylus/sone/text/SoneTextParserTest.java @@ -20,6 +20,9 @@ package net.pterodactylus.sone.text; import java.io.IOException; import java.io.StringReader; import java.util.Arrays; +import java.util.Collection; + +import com.google.common.base.Optional; import junit.framework.TestCase; import net.pterodactylus.sone.data.Sone; @@ -181,8 +184,8 @@ public class SoneTextParserTest extends TestCase { * {@inheritDoc} */ @Override - public Sone getSone(final String soneId) { - return new Sone(soneId, false) { + public Optional getSone(final String soneId) { + return Optional. fromNullable(new Sone(soneId, false) { /** * {@inheritDoc} @@ -191,7 +194,31 @@ public class SoneTextParserTest extends TestCase { public String getName() { return soneId; } - }; + }); + } + + /** + * {@inheritDocs} + */ + @Override + public Collection getSones() { + return null; + } + + /** + * {@inheritDocs} + */ + @Override + public Collection getLocalSones() { + return null; + } + + /** + * {@inheritDocs} + */ + @Override + public Collection getRemoteSones() { + return null; } }