robot-core/src/test/java/org/obolibrary/robot/OntologyHelperTest.java
@Test
  public void testGetLabels() throws IOException {
    OWLOntology simple = loadOntology("/simple.owl");
    Map<IRI, String> expected = new HashMap<>();
    expected.put(IRI.create(base + "simple.owl#test1"), "Test 1");
    Map<IRI, String> actual = OntologyHelper.getLabels(simple);
    assertEquals(expected, actual);
  }
/**
   * Test getting a map of labels.
   *
   * @throws IOException on file problem
   */
Test getting a map of labels.
@throws IOException on file problem
Test getting a map of labels . @throws IOException on file problem
@Test
  public void testGetLabels() throws IOException {
    OWLOntology simple = loadOntology("/simple.owl");
    Map<IRI, String> expected = new HashMap<>();
    expected.put(IRI.create(base + "simple.owl#test1"), "Test 1");
    Map<IRI, String> actual = OntologyHelper.getLabels(simple);
    assertEquals(expected, actual);
  }
@ Test public void testGetLabels ( ) throws IOException { OWLOntology simple = loadOntology ( "/simple.owl" ) ; Map < IRI , String > expected = new HashMap < > ( ) ; expected . put ( IRI . create ( base + "simple.owl#test1" ) , "Test 1" ) ; Map < IRI , String > actual = OntologyHelper . getLabels ( simple ) ; assertEquals ( expected , actual ) ; }
Test getting a map of labels.
Test getting a map of labels .