Skip to content

Commit

Permalink
Update versioning to use new ldp path patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer committed Sep 26, 2014
1 parent 97b06e0 commit 4eabea2
Show file tree
Hide file tree
Showing 20 changed files with 1,079 additions and 756 deletions.
Expand Up @@ -55,10 +55,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 @@ -188,7 +188,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 @@ -206,7 +206,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 @@ -223,7 +223,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 4eabea2

Please sign in to comment.