Merge branch 'release-0.8.8'
[Sone.git] / src / test / java / net / pterodactylus / sone / text / SoneTextParserTest.java
index 7286001..2c04b23 100644 (file)
@@ -26,6 +26,7 @@ import com.google.common.base.Optional;
 
 import junit.framework.TestCase;
 import net.pterodactylus.sone.data.Sone;
+import net.pterodactylus.sone.data.SoneImpl;
 import net.pterodactylus.sone.database.SoneProvider;
 
 /**
@@ -185,7 +186,7 @@ public class SoneTextParserTest extends TestCase {
                 */
                @Override
                public Optional<Sone> getSone(final String soneId) {
-                       return Optional.<Sone> fromNullable(new Sone(soneId, false) {
+                       return Optional.<Sone>of(new SoneImpl(soneId, false) {
 
                                /**
                                 * {@inheritDoc}