Class RuleTst

    • Constructor Detail

      • RuleTst

        public RuleTst()
    • Method Detail

      • setUp

        protected void setUp()
      • getRules

        protected List<Rule> getRules()
      • findRule

        public static Rule findRule​(String ruleSet,
                                    String ruleName)
        Find a rule in a certain ruleset by name.
      • runTests

        public void runTests​(Rule rule)
        Run a set of tests defined in an XML test-data file for a rule. The file should be ./xml/RuleName.xml relative to the test-class. The format is defined in test-data.xsd.
      • runTests

        public void runTests​(Rule rule,
                             String testsFileName)
        Run a set of tests defined in a XML test-data file. The file should be ./xml/[testsFileName].xml relative to the test-class. The format is defined in test-data.xsd.