test.junit.fedora.server.validation.MockTripleIterator Maven / Gradle / Ivy
package fedora.server.validation;
import java.util.Collection;
import java.util.Iterator;
import org.jrdf.graph.Triple;
import org.trippi.TripleIterator;
import org.trippi.TrippiException;
public class MockTripleIterator extends TripleIterator {
private Iterator triples;
public MockTripleIterator(Collection triples) {
this.triples = triples.iterator();
}
@Override
public void close() throws TrippiException {
}
@Override
public boolean hasNext() throws TrippiException {
return triples.hasNext();
}
@Override
public Triple next() throws TrippiException {
return triples.next();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy