private static final String SELLER_ID = "ruleTestShop";
private BillingEngine billingEngine;
public void setUp() throws Exception {
RuleServerManager ruleServerManager = new RuleServerManager();
RuleServerConfiguration configuration = new RuleServerConfiguration(new JSR94BackendRuntimeFactory());
ruleServerManager.init(configuration);
Util.setRuleManagerService(ruleServerManager);
String carbonHome = "src/test/resources/carbonhome1";
System.setProperty("carbon.home", carbonHome);
System.setProperty("carbon.config.dir.path", carbonHome + "/repository/conf");
SessionDescription sessionDescription = new SessionDescription();
sessionDescription.setSessionType(SessionDescription.STATEFUL_SESSION);
ruleServerManager = new RuleServerManager();// TODO to get from a OSGI service
configuration = new RuleServerConfiguration(new JSR94BackendRuntimeFactory());
ruleServerManager.init(configuration);
Util.setRuleManagerService(ruleServerManager);