@Test public void testIsSalienceDynamic() { final RuleImpl rule = new RuleImpl("myrule"); Salience salience = new MVELSalienceExpression(); rule.setSalience(salience); assertTrue(rule.isSalienceDynamic()); }
@Test public void testGetSalienceValue() { final RuleImpl rule = new RuleImpl("myrule"); final int salienceValue = 100; Salience salience = new SalienceInteger(salienceValue); rule.setSalience(salience); assertEquals(salienceValue, rule.getSalienceValue()); assertFalse(rule.isSalienceDynamic()); }