Examples of applyFix()


Examples of com.clarkparsia.pellint.model.Lint.applyFix()

  @Test
  public void testWithoutFixer() throws OWLOntologyChangeException {
    Lint lint = new Lint(m_MockPattern, m_Ontology);
    assertSame(m_MockPattern, lint.getPattern());
    assertSame(m_Ontology, lint.getParticipatingOntology());
    assertFalse(lint.applyFix(m_Manager));
  }

  @Test
  public void testWithFixer() throws OWLOntologyChangeException {
    Lint lint = new Lint(m_MockPattern, m_Ontology);
View Full Code Here

Examples of com.clarkparsia.pellint.model.Lint.applyFix()

  @Test
  public void testWithFixer() throws OWLOntologyChangeException {
    Lint lint = new Lint(m_MockPattern, m_Ontology);
    MockLintFixer fixer = new MockLintFixer();
    lint.setLintFixer(fixer);
    assertTrue(lint.applyFix(m_Manager));
    assertTrue(fixer.applyCalled);
  }
}
View Full Code Here

Examples of com.clarkparsia.pellint.model.Lint.applyFix()

  @Test
  public void testWithoutFixer() throws OWLOntologyChangeException {
    Lint lint = new Lint(m_MockPattern, m_Ontology);
    assertSame(m_MockPattern, lint.getPattern());
    assertSame(m_Ontology, lint.getParticipatingOntology());
    assertFalse(lint.applyFix(m_Manager));
  }

  @Test
  public void testWithFixer() throws OWLOntologyChangeException {
    Lint lint = new Lint(m_MockPattern, m_Ontology);
View Full Code Here

Examples of com.clarkparsia.pellint.model.Lint.applyFix()

  @Test
  public void testWithFixer() throws OWLOntologyChangeException {
    Lint lint = new Lint(m_MockPattern, m_Ontology);
    MockLintFixer fixer = new MockLintFixer();
    lint.setLintFixer(fixer);
    assertTrue(lint.applyFix(m_Manager));
    assertTrue(fixer.applyCalled);
  }
}
View Full Code Here

Examples of com.clarkparsia.pellint.model.OntologyLints.applyFix()

    ontologyLints.addLint(unfixablePattern, unfixableLint);
    MockLintPattern fixablePattern = new MockLintPattern(true);
    List<Lint> lints = Arrays.<Lint>asList(new MockLint(), new MockLint(), new MockLint());
    ontologyLints.addLints(fixablePattern, lints);
   
    assertEquals(Collections.singleton( unfixableLint ), ontologyLints.applyFix(m_Manager));
  }
}
View Full Code Here

Examples of com.clarkparsia.pellint.model.OntologyLints.applyFix()

    ontologyLints.addLint(unfixablePattern, unfixableLint);
    MockLintPattern fixablePattern = new MockLintPattern(true);
    List<Lint> lints = Arrays.<Lint>asList(new MockLint(), new MockLint(), new MockLint());
    ontologyLints.addLints(fixablePattern, lints);
   
    assertEquals(Collections.singleton( unfixableLint ), ontologyLints.applyFix(m_Manager));
  }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.