@Override
 protected void teardown() {
   latch.countDown();
   killRemoteCacheManager(remoteCacheManager);
   killServers(hotrodServer);
   super.teardown();
 }
 @Override
 protected void setup() throws Exception {
   super.setup();
   hotrodServer = createHotRodServer();
   remoteCacheManager = getRemoteCacheManager();
   remoteCacheManager.getCache(); // start the cache
 }
Exemplo n.º 3
0
 @Override
 protected void setup() throws Exception {
   super.setup();
   hotrodServer = HotRodClientTestingUtil.startHotRodServer(cacheManager);
   port = hotrodServer.getPort();
   remoteCacheManager =
       new RemoteCacheManager(
           new org.infinispan.client.hotrod.configuration.ConfigurationBuilder()
               .addServers("localhost:" + hotrodServer.getPort())
               .build());
   remoteCacheManager.start();
   GlobalComponentRegistry gcr = TestingUtil.extractGlobalComponentRegistry(cacheManager);
   interpreter = gcr.getComponent(Interpreter.class);
 }
 @Override
 protected void setup() throws Exception {
   super.setup();
   store = TestingUtil.extractComponent(cache, CacheLoaderManager.class).getCacheStore();
 }