import junit.framework.TestCase;
import net.pterodactylus.sone.data.Sone;
-import net.pterodactylus.sone.data.SoneImpl;
+import net.pterodactylus.sone.data.impl.IdOnlySone;
import net.pterodactylus.sone.database.SoneProvider;
/**
*/
@Override
public Optional<Sone> getSone(final String soneId) {
- return Optional.<Sone>of(new SoneImpl(soneId, false) {
-
- /**
- * {@inheritDoc}
- */
- @Override
- public String getName() {
- return soneId;
- }
- });
+ return Optional.<Sone>of(new IdOnlySone(soneId));
}
/**