robot-core/src/test/java/org/obolibrary/robot/OntologyHelperTest.java
@Test
  public void testGetValues() throws IOException {
    IRI iri = IRI.create(base + "simple.owl#test1");
    OWLOntology simple = loadOntology("/simple.owl");
    OWLDataFactory df = simple.getOWLOntologyManager().getOWLDataFactory();
    Set<String> actual = OntologyHelper.getAnnotationStrings(simple, df.getRDFSLabel(), iri);

    Set<String> expected = new HashSet<>();
    expected.add("Test 1");
    expected.add("test one");
    assertEquals(expected, actual);
  }
/**
   * Test getting values.
   *
   * @throws IOException on file problem
   */
Test getting values.
@throws IOException on file problem
Test getting values . @throws IOException on file problem
@Test
  public void testGetValues() throws IOException {
    IRI iri = IRI.create(base + "simple.owl#test1");
    OWLOntology simple = loadOntology("/simple.owl");
    OWLDataFactory df = simple.getOWLOntologyManager().getOWLDataFactory();
    Set<String> actual = OntologyHelper.getAnnotationStrings(simple, df.getRDFSLabel(), iri);
    Set<String> expected = new HashSet<>();
    expected.add("Test 1");
    expected.add("test one");
    assertEquals(expected, actual);
  }
@ Test public void testGetValues ( ) throws IOException { IRI iri = IRI . create ( base + "simple.owl#test1" ) ; OWLOntology simple = loadOntology ( "/simple.owl" ) ; OWLDataFactory df = simple . getOWLOntologyManager ( ) . getOWLDataFactory ( ) ; Set < String > actual = OntologyHelper . getAnnotationStrings ( simple , df . getRDFSLabel ( ) , iri ) ; Set < String > expected = new HashSet < > ( ) ; expected . add ( "Test 1" ) ; expected . add ( "test one" ) ; assertEquals ( expected , actual ) ; }
Test getting values.
Test getting values .