robot-core/src/test/java/org/obolibrary/robot/TemplateTest.java
@Test
  public void testLegacyTemplateCSV() throws Exception {
    String path = "/legacy-template.csv";
    List<List<String>> rows = TemplateHelper.readCSV(this.getClass().getResourceAsStream(path));
    OWLOntology simpleParts = loadOntology("/simple_parts.owl");

    Template t = new Template(path, rows, simpleParts);
    OWLOntology template = t.generateOutputOntology("http://test.com/template.owl", false);
    assertIdentical("/template.owl", template);
  }
/**
   * Test legacy templating.
   *
   * @throws Exception if entities cannot be found
   */
Test legacy templating.
@throws Exception if entities cannot be found
Test legacy templating . @throws Exception if entities cannot be found
@Test
  public void testLegacyTemplateCSV() throws Exception {
    String path = "/legacy-template.csv";
    List<List<String>> rows = TemplateHelper.readCSV(this.getClass().getResourceAsStream(path));
    OWLOntology simpleParts = loadOntology("/simple_parts.owl");
    Template t = new Template(path, rows, simpleParts);
    OWLOntology template = t.generateOutputOntology("http://test.com/template.owl", false);
    assertIdentical("/template.owl", template);
  }
@ Test public void testLegacyTemplateCSV ( ) throws Exception { String path = "/legacy-template.csv" ; List < List < String > > rows = TemplateHelper . readCSV ( this . getClass ( ) . getResourceAsStream ( path ) ) ; OWLOntology simpleParts = loadOntology ( "/simple_parts.owl" ) ; Template t = new Template ( path , rows , simpleParts ) ; OWLOntology template = t . generateOutputOntology ( "http://test.com/template.owl" , false ) ; assertIdentical ( "/template.owl" , template ) ; }
Test legacy templating.
Test legacy templating .