projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove obsolete import.
[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
7286001
..
c805998
100644
(file)
--- a/
src/test/java/net/pterodactylus/sone/text/SoneTextParserTest.java
+++ b/
src/test/java/net/pterodactylus/sone/text/SoneTextParserTest.java
@@
-26,6
+26,7
@@
import com.google.common.base.Optional;
import junit.framework.TestCase;
import net.pterodactylus.sone.data.Sone;
import junit.framework.TestCase;
import net.pterodactylus.sone.data.Sone;
+import net.pterodactylus.sone.data.impl.IdOnlySone;
import net.pterodactylus.sone.database.SoneProvider;
/**
import net.pterodactylus.sone.database.SoneProvider;
/**
@@
-185,16
+186,7
@@
public class SoneTextParserTest extends TestCase {
*/
@Override
public Optional<Sone> getSone(final String soneId) {
*/
@Override
public Optional<Sone> getSone(final String soneId) {
- return Optional.<Sone> fromNullable(new Sone(soneId, false) {
-
- /**
- * {@inheritDoc}
- */
- @Override
- public String getName() {
- return soneId;
- }
- });
+ return Optional.<Sone>of(new IdOnlySone(soneId));
}
/**
}
/**