private static final String BILLING_CONFIG = "billing-config.xml";
private static final String SELLER_ID = "carbonHome2TestShop";
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/carbonhome2";
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);
String configFile = CarbonUtils.getCarbonConfigDirPath() + "/" + BILLING_CONFIG;