Package org.springmodules.jsr94.rulesource

Examples of org.springmodules.jsr94.rulesource.DefaultRuleSource.afterPropertiesSet()


    controlSource.replay();
    controlRuleAdministrator.replay();
    controlRuleExecutionSetProvider.replay();
    controlRuleRuntime.replay();

    rs.afterPropertiesSet();

    controlRuleAdministrator.verify();
  }

}
View Full Code Here


  public void testInitialization() throws Exception {
    DefaultRuleSource source = new DefaultRuleSource();

    // test the afterPropertiesSet() calls
    try {
      source.afterPropertiesSet();
      fail("ruleAdministrator, ruleRuntime, bindUri and source not set");
    }
    catch (IllegalArgumentException ex) {
      // expected
    }
View Full Code Here

    catch (IllegalArgumentException ex) {
      // expected
    }
    source.setBindUri(BIND_URI);
    try {
      source.afterPropertiesSet();
      fail("ruleAdministrator, ruleRuntime and source not set");
    }
    catch (IllegalArgumentException ex) {
      // expected
    }
View Full Code Here

    catch (IllegalArgumentException ex) {
      // expected
    }
    source.setSource(new ClassPathResource(RULES_RESOURCE));
    try {
      source.afterPropertiesSet();
      fail("ruleAdministrator, ruleRuntime not set");
    }
    catch (IllegalArgumentException ex) {
      // expected
    }
View Full Code Here

    catch (IllegalArgumentException ex) {
      // expected
    }
    source.setRuleAdministrator(ruleAdministrator);
    try {
      source.afterPropertiesSet();
      fail("ruleRuntime not set");
    }
    catch (IllegalArgumentException ex) {
      // expected
    }
View Full Code Here

    }
    catch (IllegalArgumentException ex) {
      // expected
    }
    source.setRuleRuntime(ruleRuntime);
    source.afterPropertiesSet();

    try {
      source.createSession(BIND_URI + "-foo", null, RuleRuntime.STATELESS_SESSION_TYPE);
      fail("Ruleset at uri " + BIND_URI + "-foo exists!");
    }
View Full Code Here

     */
  public void testStatelessExecution() throws Exception {
    // create the source
    DefaultRuleSource source = new DefaultRuleSource();
    setProperties(source);
    source.afterPropertiesSet();

    // get the stateless session
    StatelessRuleSession session = (StatelessRuleSession) source.createSession(BIND_URI, null, RuleRuntime.STATELESS_SESSION_TYPE);

    // execute it
View Full Code Here

   */
  public void testStatefulExecution() throws Exception {
    // create the source
    DefaultRuleSource source = new DefaultRuleSource();
    setProperties(source);
    source.afterPropertiesSet();

    // get the stateless session
    StatefulRuleSession session = (StatefulRuleSession) source.createSession(BIND_URI, null, RuleRuntime.STATEFUL_SESSION_TYPE);

    // execute it
View Full Code Here

  public void testInitialization() throws Exception {
    DefaultRuleSource source = new DefaultRuleSource();

    // test the afterPropertiesSet() calls
    try {
      source.afterPropertiesSet();
      fail("ruleServiceProvider, bindUri and source not set");
    }
    catch (IllegalArgumentException ex) {
      // expected
    }
View Full Code Here

    catch (IllegalArgumentException ex) {
      // expected
    }
    source.setBindUri(BIND_URI);
    try {
      source.afterPropertiesSet();
      fail("ruleAdministrator, ruleRuntime and source not set");
    }
    catch (IllegalArgumentException ex) {
      // expected
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.