lambdora-service/src/test/java/org/fcrepo/lambdora/service/db/DynamoDBResourceTripleDaoTest.java
/**
     * Tests finding triples based on rdf object and predicate
     */
Tests finding triples based on rdf object and predicate
Tests finding triples based on rdf object and predicate
@Test
    public void testFindByObjectAndPredicate() {
        final List<ResourceTriple> resultList =
            resourceTripleDao.findByObjectAndPredicate(t2[2], t2[1]);
        assertEquals(1, resultList.size());
        for (ResourceTriple triple : resultList) {
            assertEquals(triple2, triple.getRdfTriple());
        }
    }
@ Test public void testFindByObjectAndPredicate ( ) { final List < ResourceTriple > resultList = resourceTripleDao . findByObjectAndPredicate ( t2 [ 2 ] , t2 [ 1 ] ) ; assertEquals ( 1 , resultList . size ( ) ) ; for ( ResourceTriple triple : resultList ) { assertEquals ( triple2 , triple . getRdfTriple ( ) ) ; } }
Tests finding triples based on rdf object and predicate
Tests finding triples based on rdf object and predicate