@Test(expected = UnsupportedOperationException.class) public void usingMethodShouldThrowNotImplemented() throws InvalidClassException { RuleAdapter ruleAdapter = new RuleAdapter(new SampleRuleWithResult()); ruleAdapter.using(); }
@Override public Decision using(String... factName) { throw new UnsupportedOperationException(); }
RuleAdapter implements Decision { @Override public Decision using(String... factName) { throw new UnsupportedOperationException(); } }
RuleAdapter implements Decision { @Override public Decision using(String... factName) { throw new UnsupportedOperationException(); } @SuppressWarnings("unchecked")  RuleAdapter(Object rulePojo, Rule rule); @SuppressWarnings("unchecked")  RuleAdapter(Object rulePojo); }
RuleAdapter implements Decision { @Override public Decision using(String... factName) { throw new UnsupportedOperationException(); } @SuppressWarnings("unchecked")  RuleAdapter(Object rulePojo, Rule rule); @SuppressWarnings("unchecked")  RuleAdapter(Object rulePojo); @Override @SuppressWarnings("unchecked") Decision given(Fact... facts); @Override @SuppressWarnings("unchecked") Decision given(List list); @Override @SuppressWarnings("unchecked") Decision given(FactMap facts); @Override @SuppressWarnings("unchecked") Decision given(String name, Object value); @Override Decision givenUnTyped(FactMap facts); @Override Predicate getWhen(); @Override List<Object> getThen(); @Override void run(Object... otherArgs); @Override Decision when(Predicate test); @Override Decision then(Consumer action); @Override Decision then(BiConsumer action); @Override Decision using(String... factName); @Override Decision stop(); @Override Object getResult(); @Override void setResult(Result result); @Override FactMap getFactMap(); @Override void setNextRule(Rule rule); }
RuleAdapter implements Decision { @Override public Decision using(String... factName) { throw new UnsupportedOperationException(); } @SuppressWarnings("unchecked")  RuleAdapter(Object rulePojo, Rule rule); @SuppressWarnings("unchecked")  RuleAdapter(Object rulePojo); @Override @SuppressWarnings("unchecked") Decision given(Fact... facts); @Override @SuppressWarnings("unchecked") Decision given(List list); @Override @SuppressWarnings("unchecked") Decision given(FactMap facts); @Override @SuppressWarnings("unchecked") Decision given(String name, Object value); @Override Decision givenUnTyped(FactMap facts); @Override Predicate getWhen(); @Override List<Object> getThen(); @Override void run(Object... otherArgs); @Override Decision when(Predicate test); @Override Decision then(Consumer action); @Override Decision then(BiConsumer action); @Override Decision using(String... factName); @Override Decision stop(); @Override Object getResult(); @Override void setResult(Result result); @Override FactMap getFactMap(); @Override void setNextRule(Rule rule);  }