Skip to content

Commit

Permalink
Remove LowLevelCacheEntry
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Woods committed May 10, 2014
1 parent c719b68 commit f7ef8f2
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 344 deletions.

This file was deleted.

This file was deleted.

Expand Up @@ -15,7 +15,6 @@
*/
package org.fcrepo.kernel.rdf.impl;

import static com.google.common.collect.ImmutableSet.of;
import static com.hp.hpl.jena.rdf.model.ResourceFactory.createResource;
import static com.hp.hpl.jena.vocabulary.RDF.type;
import static org.fcrepo.kernel.RdfLexicon.CONTAINER;
Expand Down Expand Up @@ -55,7 +54,6 @@
import org.fcrepo.kernel.rdf.HierarchyRdfContextOptions;
import org.fcrepo.kernel.rdf.IdentifierTranslator;
import org.fcrepo.kernel.testutilities.TestPropertyIterator;
import org.fcrepo.kernel.utils.LowLevelCacheEntry;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mock;
Expand Down Expand Up @@ -267,8 +265,6 @@ private void buildContentNode() throws RepositoryException {
mockBinaryProperty);
when(mockBinaryProperty.getName()).thenReturn(JCR_DATA);
when(mockBinaryProperty.getParent()).thenReturn(mockContentNode);
when(mockCacheEntry.getExternalIdentifier()).thenReturn(
testExternalIdentifier);

when(mockContentNode.getProperties()).thenReturn(
new TestPropertyIterator(mockBinaryProperty));
Expand Down Expand Up @@ -352,9 +348,6 @@ private Model getResults(HierarchyRdfContextOptions options) throws RepositoryEx
@Mock
private Property mockBinaryProperty;

@Mock
private LowLevelCacheEntry mockCacheEntry;

private static final Logger LOGGER =
getLogger(HierarchyRdfContextTest.class);

Expand Down
Expand Up @@ -17,7 +17,6 @@

import static com.hp.hpl.jena.rdf.model.ResourceFactory.createResource;
import static org.fcrepo.kernel.RdfLexicon.HAS_CONTENT;
import static org.fcrepo.kernel.RdfLexicon.HAS_CONTENT_LOCATION;
import static org.fcrepo.kernel.RdfLexicon.IS_CONTENT_OF;
import static org.fcrepo.kernel.RdfLexicon.JCR_NAMESPACE;
import static org.junit.Assert.assertTrue;
Expand All @@ -39,7 +38,6 @@
import javax.jcr.nodetype.NodeType;

import org.fcrepo.kernel.rdf.IdentifierTranslator;
import org.fcrepo.kernel.utils.LowLevelCacheEntry;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mock;
Expand Down Expand Up @@ -78,8 +76,6 @@ public void setUp() throws RepositoryException {
when(mockNode.getMixinNodeTypes()).thenReturn(new NodeType[] {});
when(mockContentNode.getMixinNodeTypes()).thenReturn(new NodeType[] {});
when(mockContentNode.hasProperties()).thenReturn(false);
when(mockLowLevelCacheEntry.getExternalIdentifier()).thenReturn(
MOCK_EXTERNAL_IDENTIFIER);
when(mockGraphSubjects.getSubject(mockNode.getPath())).thenReturn(mockSubject);
when(mockGraphSubjects.getSubject(mockContentNode.getPath())).thenReturn(mockContentSubject);
when(mockNode.getPrimaryNodeType()).thenReturn(mockNodeType);
Expand Down Expand Up @@ -125,9 +121,6 @@ public void setUp() throws RepositoryException {
@Mock
private NamespaceRegistry mockNamespaceRegistry;

@Mock
private LowLevelCacheEntry mockLowLevelCacheEntry;

private static void
logRdf(final String message, final Model model) throws IOException {
LOGGER.debug(message);
Expand Down
Expand Up @@ -73,7 +73,6 @@
import java.net.URI;
import java.net.URISyntaxException;
import java.util.Calendar;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.NoSuchElementException;
Expand Down Expand Up @@ -707,7 +706,7 @@ private static void logRDF(final Model rdf) throws IOException {
private BinaryValue mockBinary;

@Mock
private LowLevelCacheEntry mockCacheEntry;
private CacheEntry mockCacheEntry;

@Mock
private QueryManager mockQueryManager;
Expand Down

0 comments on commit f7ef8f2

Please sign in to comment.