content: package org.aksw.rdfunit.model.readers;
  
  import java.util.ArrayList;
  import java.util.Collection;
  import org.aksw.rdfunit.Resources;
  import org.aksw.rdfunit.io.reader.RdfReaderException;
  import org.aksw.rdfunit.io.reader.RdfReaderFactory;
  import org.aksw.rdfunit.vocabulary.RDFUNITv;
  import org.apache.jena.rdf.model.Model;
  import org.apache.jena.rdf.model.Resource;
  import org.apache.jena.vocabulary.RDF;
  import org.junit.Test;
  import org.junit.runner.RunWith;
  import org.junit.runners.Parameterized;
  import org.junit.runners.Parameterized.Parameter;
  import org.junit.runners.Parameterized.Parameters;
  
  /**
   * Description
   *
   * @author Dimitris Kontokostas
   * @since 8/18/15 12:51 AM
   */
  @RunWith(Parameterized.class)
  public class PatternReaderTest {
  
  
    @Parameter
    public Resource resource;
  
    @Parameters(name = "{index}: Pattern: {0}")
    public static Collection<Object[]> resources() throws RdfReaderException {
      Model model = RdfReaderFactory.createResourceReader(Resources.PATTERNS).read();
      Collection<Object[]> parameters = new ArrayList<>();
      for (Resource resource : model.listResourcesWithProperty(RDF.type, RDFUNITv.Pattern).toList()) {
        parameters.add(new Object[]{resource});
      }
      return parameters;
    }
  
    @Test
    public void testRead() {
      PatternReader.create().read(resource);
    }
  }