Skip to content

Commit

Permalink
don't query on JCR types
Browse files Browse the repository at this point in the history
  • Loading branch information
acoburn committed Nov 5, 2015
1 parent 0519e66 commit ed8048d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -19,7 +19,7 @@

<properties>
<ldpath.version>3.2.1</ldpath.version>
<fcrepo.version>${project.version}</fcrepo.version>
<fcrepo.version>4.4.1-SNAPSHOT</fcrepo.version>
<osgi.import.packages>
org.fcrepo.kernel.api,
org.fcrepo.http.api,
Expand Down
Expand Up @@ -44,7 +44,6 @@
import static java.util.UUID.randomUUID;
import static org.fcrepo.kernel.api.RdfLexicon.REPOSITORY_NAMESPACE;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;


/**
Expand All @@ -68,7 +67,7 @@ public class SparqlQueryTransformIT extends AbstractResourceIT {
private SparqlQueryTransform testObj;

@Test
public void testQueryPrimaryType() throws RepositoryException, IOException {
public void testQueryNoPrimaryType() throws RepositoryException, IOException {
final Session session = repo.login();
try {
final Container object = containerService.findOrCreate(session, "/testObject-" + randomUUID());
Expand All @@ -83,7 +82,7 @@ public void testQueryPrimaryType() throws RepositoryException, IOException {
PropertiesRdfContext.class);
try (final QueryExecution qexec = testObj.apply(stream)) {
final ResultSet results = requireNonNull(qexec).execSelect();
assertTrue(requireNonNull(results).hasNext());
assertFalse(requireNonNull(results).hasNext());
}
}
} finally {
Expand Down

0 comments on commit ed8048d

Please sign in to comment.