@After public void tearDown() throws Exception { HumanTaskServerService.getInstance().stopTaskServer(); MessageServerSingleton.getInstance().stop(); if (remoteN1 != null) { remoteN1.dispose(); } if (grid1 != null) { grid1.get(SocketService.class).close(); } PersistenceServiceProvider.clear(); ContextTrackingProvider.clear(); }
@Before public void setUp() throws Exception { persistenceService = PersistenceServiceProvider.getPersistenceService(); trackingService = ContextTrackingProvider.getTrackingService(); HumanTaskServerService.getInstance().initTaskServer(); MessageServerSingleton.getInstance().start(); consumer = MessageFactory.createMessageConsumer("IncomingCall"); this.coreServicesMap = new HashMap(); createRemoteNode(); client = HumanTaskServerService.getInstance().initTaskClient(); }