Package com.clarkparsia.pellint.test.lintpattern.axiom

Examples of com.clarkparsia.pellint.test.lintpattern.axiom.MockAxiomLintPattern


    LintPatternLoader loader = new LintPatternLoader(prop);
   
    assertEquals(1, loader.getAxiomLintPatterns().size());
    assertEquals(0, loader.getOntologyLintPatterns().size());
   
    MockAxiomLintPattern pattern = (MockAxiomLintPattern) loader.getAxiomLintPatterns().get(0);
    assertEquals(EXPECTED_INT_PARAM, pattern.getIntParam());
    assertEquals(EXPECTED_STRING_PARAM, pattern.getStringParam());
  }
View Full Code Here


    LintPatternLoader loader = new LintPatternLoader(prop);
   
    assertEquals(1, loader.getAxiomLintPatterns().size());
    assertEquals(1, loader.getOntologyLintPatterns().size());
   
    MockAxiomLintPattern axiomPattern = (MockAxiomLintPattern) loader.getAxiomLintPatterns().get(0);
    assertEquals(0, axiomPattern.getIntParam());
    assertNull(axiomPattern.getStringParam());
   
    MockOntologyLintPattern ontologyPattern = (MockOntologyLintPattern) loader.getOntologyLintPatterns().get(0);
    assertEquals(0, ontologyPattern.getIntParam());
    assertNull(ontologyPattern.getStringParam());
  }
View Full Code Here

    Properties prop = new Properties();
    prop.setProperty(MOCK_AXIOM_LINT_PATTERN_NAME, "ON");
    prop.setProperty(MOCK_AXIOM_LINT_PATTERN_NAME + "." + INT_PARAM, "XXX");
    LintPatternLoader loader = new LintPatternLoader(prop);
   
    MockAxiomLintPattern axiomPattern = (MockAxiomLintPattern) loader.getAxiomLintPatterns().get(0);
    assertEquals(0, axiomPattern.getIntParam());
  }
View Full Code Here

    Properties prop = new Properties();
    prop.setProperty(MOCK_AXIOM_LINT_PATTERN_NAME, "ON");
    prop.setProperty(MOCK_AXIOM_LINT_PATTERN_NAME + "." + INT_PARAM, "5.5");
    LintPatternLoader loader = new LintPatternLoader(prop);
   
    MockAxiomLintPattern axiomPattern = (MockAxiomLintPattern) loader.getAxiomLintPatterns().get(0);
    assertEquals(0, axiomPattern.getIntParam());
  }
View Full Code Here

TOP

Related Classes of com.clarkparsia.pellint.test.lintpattern.axiom.MockAxiomLintPattern

Copyright © 2018 www.massapicom. 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.