Turn Sone into an interface, add in-memory implementation of Sone.
[Sone.git] / src / test / java / net / pterodactylus / sone / text / SoneTextParserTest.java
index d98d4ec..4f9f002 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Sone - SoneTextParserTest.java - Copyright © 2011 David Roden
+ * Sone - SoneTextParserTest.java - Copyright © 2011–2012 David Roden
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -23,6 +23,7 @@ import java.io.StringReader;
 import junit.framework.TestCase;
 import net.pterodactylus.sone.core.SoneProvider;
 import net.pterodactylus.sone.data.Sone;
+import net.pterodactylus.sone.database.memory.MemorySone;
 
 /**
  * JUnit test case for {@link SoneTextParser}.
@@ -161,7 +162,7 @@ public class SoneTextParserTest extends TestCase {
                 */
                @Override
                public Sone getSone(final String soneId, boolean create) {
-                       return new Sone(soneId) {
+                       return new MemorySone(soneId, false) {
 
                                /**
                                 * {@inheritDoc}