Skip to content

Commit

Permalink
Update FedoraVersions to use LDP and the request-scoped pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer committed Oct 2, 2014
1 parent b2da57d commit eedd625
Show file tree
Hide file tree
Showing 20 changed files with 1,146 additions and 781 deletions.
Expand Up @@ -58,10 +58,10 @@
import org.fcrepo.kernel.Datastream;
import org.fcrepo.kernel.FedoraBinary;
import org.fcrepo.kernel.FedoraObject;
import org.fcrepo.kernel.impl.utils.FedoraTypesUtils;
import org.fcrepo.kernel.services.DatastreamService;
import org.fcrepo.kernel.services.NodeService;
import org.fcrepo.kernel.services.ObjectService;
import org.fcrepo.kernel.services.functions.JcrPropertyFunctions;
import org.fcrepo.kernel.utils.FixityResult;
import org.junit.AfterClass;
import org.junit.BeforeClass;
Expand Down Expand Up @@ -199,7 +199,7 @@ public void testGetFederatedObject() throws RepositoryException {
final NodeType[] mixins = node.getMixinNodeTypes();
assertEquals(2, mixins.length);

final boolean found = transform(asList(mixins),FedoraTypesUtils.nodetype2name).contains(FEDORA_OBJECT);
final boolean found = transform(asList(mixins), JcrPropertyFunctions.nodetype2name).contains(FEDORA_OBJECT);
assertTrue("Mixin not found: " + FEDORA_OBJECT, found);

session.save();
Expand All @@ -217,7 +217,7 @@ public void testGetFederatedDatastream() throws RepositoryException {
final NodeType[] mixins = node.getMixinNodeTypes();
assertEquals(2, mixins.length);

final boolean found = transform(asList(mixins),FedoraTypesUtils.nodetype2name).contains(FEDORA_DATASTREAM);
final boolean found = transform(asList(mixins), JcrPropertyFunctions.nodetype2name).contains(FEDORA_DATASTREAM);
assertTrue("Mixin not found: " + FEDORA_DATASTREAM, found);

session.save();
Expand All @@ -234,7 +234,7 @@ public void testGetFederatedContent() throws RepositoryException {
final NodeType[] mixins = node.getMixinNodeTypes();
assertEquals(2, mixins.length);

final boolean found = transform(asList(mixins),FedoraTypesUtils.nodetype2name).contains(FEDORA_BINARY);
final boolean found = transform(asList(mixins), JcrPropertyFunctions.nodetype2name).contains(FEDORA_BINARY);
assertTrue("Mixin not found: " + FEDORA_BINARY, found);

final File file = fileForNode(node);
Expand Down

Large diffs are not rendered by default.

0 comments on commit eedd625

Please sign in to comment.