some cleanup (MARMOTTA-110) Project: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/commit/bee275f2 Tree: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/tree/bee275f2 Diff: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/diff/bee275f2
Branch: refs/heads/master Commit: bee275f2fabd0ff9bd4f2c7f36619a7d1673cfbc Parents: 4dd5de6 Author: Jakob Frank <[email protected]> Authored: Wed Mar 27 15:43:09 2013 +0100 Committer: Jakob Frank <[email protected]> Committed: Wed Mar 27 16:34:53 2013 +0100 ---------------------------------------------------------------------- .../marmotta/ldpath/backend/file/ParserTest.java | 13 +++---------- .../marmotta/ldpath/backend/file/PathTest.java | 1 - 2 files changed, 3 insertions(+), 11 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/bee275f2/libraries/ldpath/ldpath-backend-file/src/test/java/org/apache/marmotta/ldpath/backend/file/ParserTest.java ---------------------------------------------------------------------- diff --git a/libraries/ldpath/ldpath-backend-file/src/test/java/org/apache/marmotta/ldpath/backend/file/ParserTest.java b/libraries/ldpath/ldpath-backend-file/src/test/java/org/apache/marmotta/ldpath/backend/file/ParserTest.java index a30029d..0eb7b99 100644 --- a/libraries/ldpath/ldpath-backend-file/src/test/java/org/apache/marmotta/ldpath/backend/file/ParserTest.java +++ b/libraries/ldpath/ldpath-backend-file/src/test/java/org/apache/marmotta/ldpath/backend/file/ParserTest.java @@ -37,7 +37,7 @@ import java.util.Map; import org.apache.commons.io.IOUtils; import org.apache.marmotta.ldpath.api.selectors.NodeSelector; -import org.apache.marmotta.ldpath.backend.sesame.SesameRepositoryBackend; +import org.apache.marmotta.ldpath.backend.sesame.SesameValueBackend; import org.apache.marmotta.ldpath.model.programs.Program; import org.apache.marmotta.ldpath.model.selectors.PathSelector; import org.apache.marmotta.ldpath.model.selectors.PropertySelector; @@ -50,11 +50,7 @@ import org.junit.Assert; import org.junit.BeforeClass; import org.junit.Test; import org.openrdf.model.Value; -import org.openrdf.repository.Repository; import org.openrdf.repository.RepositoryException; -import org.openrdf.repository.sail.SailRepository; -import org.openrdf.sail.memory.MemoryStore; - import com.google.common.collect.ImmutableMap; @@ -65,14 +61,11 @@ import com.google.common.collect.ImmutableMap; */ public class ParserTest { - private static SesameRepositoryBackend backend; + private static SesameValueBackend backend; @BeforeClass public static void setupRepository() throws RepositoryException { - Repository repository = new SailRepository(new MemoryStore()); - repository.initialize(); - - backend = new SesameRepositoryBackend(repository); + backend = new SesameValueBackend(); } http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/bee275f2/libraries/ldpath/ldpath-backend-file/src/test/java/org/apache/marmotta/ldpath/backend/file/PathTest.java ---------------------------------------------------------------------- diff --git a/libraries/ldpath/ldpath-backend-file/src/test/java/org/apache/marmotta/ldpath/backend/file/PathTest.java b/libraries/ldpath/ldpath-backend-file/src/test/java/org/apache/marmotta/ldpath/backend/file/PathTest.java index 9749b78..aceb25a 100644 --- a/libraries/ldpath/ldpath-backend-file/src/test/java/org/apache/marmotta/ldpath/backend/file/PathTest.java +++ b/libraries/ldpath/ldpath-backend-file/src/test/java/org/apache/marmotta/ldpath/backend/file/PathTest.java @@ -33,7 +33,6 @@ package org.apache.marmotta.ldpath.backend.file; */ import static org.hamcrest.Matchers.hasItem; -import static org.hamcrest.Matchers.hasItems; import java.util.Collection; import java.util.HashMap;
