Class RuleTst

    • Constructor Detail

      • RuleTst

        public RuleTst()
    • Method Detail

      • setUp

        protected void setUp()
      • getRules

        protected List<Rule> getRules()
        Return the rules that will be tested. Each rule must have a corresponding XML file containing a test collection. Test collections for all these rules are run separately.
      • getExtraRules

        protected Collection<? extends Rule> getExtraRules()
        Return extra rules that will be run while running the tests.
      • 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.