projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add unit test for preferences.
[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
..
2c04b23
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.SoneImpl;
import net.pterodactylus.sone.database.SoneProvider;
/**
import net.pterodactylus.sone.database.SoneProvider;
/**
@@
-185,7
+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) {
+ return Optional.<Sone>
of(new SoneImpl
(soneId, false) {
/**
* {@inheritDoc}
/**
* {@inheritDoc}