Package org.drools.brms.client.modeldriven.brl

Examples of org.drools.brms.client.modeldriven.brl.RuleModel.addAttribute()


    public void testLockOnActive() {
      RuleModel m = new RuleModel();

      m.addAttribute(new RuleAttribute("lock-on-active", "true"));
      m.addAttribute(new RuleAttribute("auto-focus", "true"));
      m.addAttribute(new RuleAttribute("duration", "42"));

        String s = BRDRLPersistence.getInstance().marshal( m );

        assertTrue(s.indexOf( "lock-on-active true" ) > -1);
View Full Code Here


    public void testLockOnActive() {
      RuleModel m = new RuleModel();

      m.addAttribute(new RuleAttribute("lock-on-active", "true"));
      m.addAttribute(new RuleAttribute("auto-focus", "true"));
      m.addAttribute(new RuleAttribute("duration", "42"));

        String s = BRDRLPersistence.getInstance().marshal( m );

        assertTrue(s.indexOf( "lock-on-active true" ) > -1);
        assertTrue(s.indexOf( "auto-focus true" ) > -1);
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.