X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Ftest%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Ftext%2FSoneTextParserTest.java;h=c805998d697c72c0151d5e70d19776afa0167ecc;hb=aadf0893d8d3c791d9bb01db8009bb12f06e49c7;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..c805998 100644 --- a/src/test/java/net/pterodactylus/sone/text/SoneTextParserTest.java +++ b/src/test/java/net/pterodactylus/sone/text/SoneTextParserTest.java @@ -20,9 +20,13 @@ 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; +import net.pterodactylus.sone.data.impl.IdOnlySone; import net.pterodactylus.sone.database.SoneProvider; /** @@ -181,17 +185,32 @@ public class SoneTextParserTest extends TestCase { * {@inheritDoc} */ @Override - public Sone getSone(final String soneId) { - return new Sone(soneId, false) { - - /** - * {@inheritDoc} - */ - @Override - public String getName() { - return soneId; - } - }; + public Optional getSone(final String soneId) { + return Optional.of(new IdOnlySone(soneId)); + } + + /** + * {@inheritDocs} + */ + @Override + public Collection getSones() { + return null; + } + + /** + * {@inheritDocs} + */ + @Override + public Collection getLocalSones() { + return null; + } + + /** + * {@inheritDocs} + */ + @Override + public Collection getRemoteSones() { + return null; } }