@Test public void testCompositeRuleNotFailResult_Fail() throws KSIException { Rule rule = new NotRule(new CompositeRule(false, ruleFail, ruleOk, ruleNa)); RuleResult ruleResult = rule.verify(context);; verifyResults(ruleResult, VerificationResultCode.FAIL, VerificationErrorCode.GEN_01, "Not TestRule,"); }
@Override public RuleResult verify(VerificationContext context) throws KSIException { return new NotRuleResult(rule, rule.verify(context)); }
NotRule implements Rule { @Override public RuleResult verify(VerificationContext context) throws KSIException { return new NotRuleResult(rule, rule.verify(context)); } }
NotRule implements Rule { @Override public RuleResult verify(VerificationContext context) throws KSIException { return new NotRuleResult(rule, rule.verify(context)); } NotRule(Rule rule); }
NotRule implements Rule { @Override public RuleResult verify(VerificationContext context) throws KSIException { return new NotRuleResult(rule, rule.verify(context)); } NotRule(Rule rule); @Override RuleResult verify(VerificationContext context); @Override String toString(); }
NotRule implements Rule { @Override public RuleResult verify(VerificationContext context) throws KSIException { return new NotRuleResult(rule, rule.verify(context)); } NotRule(Rule rule); @Override RuleResult verify(VerificationContext context); @Override String toString();  }