conditionTwoMethod = PojoRule.class.getDeclaredMethod("conditionTwo", new Class[]{
long.class, int.class
});
conditionTwoArgumentMetadata = new ArgumentMetadata[]{
new FactArgumentMetadata(null, long.class),
new DataArgumentMetadata("value", int.class)
};
expectedDeclarationObjectTypes.add(new BeanObjectType(long.class));
expectedConditionMethodNames.add(conditionTwoMethod.getName());
// consequenceOne
consequenceOneMethod = PojoRule.class.getDeclaredMethod("consequenceOne", new Class[]{
String.class
});
consequenceOneArgumentMetadata = new ArgumentMetadata[]{
new FactArgumentMetadata(null, String.class)
};
expectedConsequenceMethodNames.add(consequenceOneMethod.getName());
// consequenceTwo
consequenceTwoMethod = PojoRule.class.getDeclaredMethod("consequenceTwo", new Class[]{
Object.class,
long.class,
int.class,
KnowledgeHelper.class
});
consequenceTwoArgumentMetadata = new ArgumentMetadata[]{
new FactArgumentMetadata(null, Object.class),
new FactArgumentMetadata(null, long.class),
new DataArgumentMetadata("value", int.class),
new KnowledgeHelperArgumentMetadata()
};
expectedDeclarationObjectTypes.add(new BeanObjectType(Object.class));
expectedDeclarationObjectTypes.add(new BeanObjectType(long.class));
expectedConsequenceMethodNames.add(consequenceTwoMethod.getName());