Examples of RemoteCacheManager


Examples of org.infinispan.client.hotrod.RemoteCacheManager

      final InfinispanRemoteCacheManagerFactoryBean objectUnderTest = new InfinispanRemoteCacheManagerFactoryBean();
      final String expectedServerListString = "testhost:4632";
      objectUnderTest.setServerList(expectedServerList);
      objectUnderTest.afterPropertiesSet();

      final RemoteCacheManager remoteCacheManager = objectUnderTest.getObject();

      assertEquals("setServerList(" + expectedServerList
               + ") should have overridden property 'serverList'. However, it didn't.",
               expectedServerListString, remoteCacheManager.getProperties().get(SERVER_LIST));
      objectUnderTest.destroy();
   }
View Full Code Here

Examples of org.infinispan.client.hotrod.RemoteCacheManager

      final InfinispanRemoteCacheManagerFactoryBean objectUnderTest = new InfinispanRemoteCacheManagerFactoryBean();
      objectUnderTest.setMarshaller(expectedMarshaller);
      objectUnderTest.setStartAutomatically(false);
      objectUnderTest.afterPropertiesSet();

      final RemoteCacheManager remoteCacheManager = objectUnderTest.getObject();

      assertEquals("setMarshaller(" + expectedMarshaller
               + ") should have overridden property 'marshaller'. However, it didn't.",
               expectedMarshaller, remoteCacheManager.getProperties().get(MARSHALLER));
      objectUnderTest.destroy();
   }
View Full Code Here

Examples of org.infinispan.client.hotrod.RemoteCacheManager

      final InfinispanRemoteCacheManagerFactoryBean objectUnderTest = new InfinispanRemoteCacheManagerFactoryBean();
      objectUnderTest.setAsyncExecutorFactory(expectedAsyncExecutorFactory);
      objectUnderTest.setStartAutomatically(false);
      objectUnderTest.afterPropertiesSet();

      final RemoteCacheManager remoteCacheManager = objectUnderTest.getObject();

      assertEquals("setAsyncExecutorFactory(" + expectedAsyncExecutorFactory
               + ") should have overridden property 'asyncExecutorFactory'. However, it didn't.",
               expectedAsyncExecutorFactory,
               remoteCacheManager.getProperties().get(ASYNC_EXECUTOR_FACTORY));
      objectUnderTest.destroy();
   }
View Full Code Here

Examples of org.infinispan.client.hotrod.RemoteCacheManager

      final boolean expectedTcpNoDelay = true;
      final InfinispanRemoteCacheManagerFactoryBean objectUnderTest = new InfinispanRemoteCacheManagerFactoryBean();
      objectUnderTest.setTcpNoDelay(expectedTcpNoDelay);
      objectUnderTest.afterPropertiesSet();

      final RemoteCacheManager remoteCacheManager = objectUnderTest.getObject();

      assertEquals("setTcpNoDelay(" + expectedTcpNoDelay
               + ") should have overridden property 'tcpNoDelay'. However, it didn't.",
               String.valueOf(expectedTcpNoDelay),
               remoteCacheManager.getProperties().get(TCP_NO_DELAY));
      objectUnderTest.destroy();
   }
View Full Code Here

Examples of org.infinispan.client.hotrod.RemoteCacheManager

      final boolean expectedPingOnStartup = true;
      final InfinispanRemoteCacheManagerFactoryBean objectUnderTest = new InfinispanRemoteCacheManagerFactoryBean();
      objectUnderTest.setPingOnStartup(expectedPingOnStartup);
      objectUnderTest.afterPropertiesSet();

      final RemoteCacheManager remoteCacheManager = objectUnderTest.getObject();

      assertEquals("setPingOnStartup(" + expectedPingOnStartup
               + ") should have overridden property 'transportFactory'. However, it didn't.",
               String.valueOf(expectedPingOnStartup),
               remoteCacheManager.getProperties().get(PING_ON_STARTUP));
      objectUnderTest.destroy();
   }
View Full Code Here

Examples of org.infinispan.client.hotrod.RemoteCacheManager

      final InfinispanRemoteCacheManagerFactoryBean objectUnderTest = new InfinispanRemoteCacheManagerFactoryBean();
      objectUnderTest.setRequestBalancingStrategy(expectedRequestBalancingStrategy);
      objectUnderTest.setStartAutomatically(false);
      objectUnderTest.afterPropertiesSet();

      final RemoteCacheManager remoteCacheManager = objectUnderTest.getObject();

      assertEquals(
               "setRequestBalancingStrategy("
                        + expectedRequestBalancingStrategy
                        + ") should have overridden property 'requestBalancingStrategy'. However, it didn't.",
               expectedRequestBalancingStrategy,
               remoteCacheManager.getProperties().get(REQUEST_BALANCING_STRATEGY));
      objectUnderTest.destroy();
   }
View Full Code Here

Examples of org.infinispan.client.hotrod.RemoteCacheManager

      final int expectedKeySizeEstimate = -123456;
      final InfinispanRemoteCacheManagerFactoryBean objectUnderTest = new InfinispanRemoteCacheManagerFactoryBean();
      objectUnderTest.setKeySizeEstimate(expectedKeySizeEstimate);
      objectUnderTest.afterPropertiesSet();

      final RemoteCacheManager remoteCacheManager = objectUnderTest.getObject();

      assertEquals("setKeySizeEstimate(" + expectedKeySizeEstimate
               + ") should have overridden property 'keySizeEstimate'. However, it didn't.",
               String.valueOf(expectedKeySizeEstimate),
               remoteCacheManager.getProperties().get(KEY_SIZE_ESTIMATE));
      objectUnderTest.destroy();
   }
View Full Code Here

Examples of org.infinispan.client.hotrod.RemoteCacheManager

      final int expectedValueSizeEstimate = -3456789;
      final InfinispanRemoteCacheManagerFactoryBean objectUnderTest = new InfinispanRemoteCacheManagerFactoryBean();
      objectUnderTest.setValueSizeEstimate(expectedValueSizeEstimate);
      objectUnderTest.afterPropertiesSet();

      final RemoteCacheManager remoteCacheManager = objectUnderTest.getObject();

      assertEquals("setValueSizeEstimate(" + expectedValueSizeEstimate
               + ") should have overridden property 'valueSizeEstimate'. However, it didn't.",
               String.valueOf(expectedValueSizeEstimate),
               remoteCacheManager.getProperties().get(VALUE_SIZE_ESTIMATE));
      objectUnderTest.destroy();
   }
View Full Code Here

Examples of org.infinispan.client.hotrod.RemoteCacheManager

      final boolean expectedForceReturnValues = true;
      final InfinispanRemoteCacheManagerFactoryBean objectUnderTest = new InfinispanRemoteCacheManagerFactoryBean();
      objectUnderTest.setForceReturnValues(expectedForceReturnValues);
      objectUnderTest.afterPropertiesSet();

      final RemoteCacheManager remoteCacheManager = objectUnderTest.getObject();

      assertEquals("setForceReturnValue(" + expectedForceReturnValues
               + ") should have overridden property 'forceReturnValue'. However, it didn't.",
               String.valueOf(expectedForceReturnValues),
               remoteCacheManager.getProperties().get(FORCE_RETURN_VALUES));
      objectUnderTest.destroy();
   }
View Full Code Here

Examples of org.infinispan.client.hotrod.RemoteCacheManager

      final SpringRemoteCacheManager remoteCacheManager = objectUnderTest.getObject();
      assertPropertiesSubset(
               "The configuration properties used by the SpringRemoteCacheManager returned von getObject() should be equal "
                        + "to SpringRemoteCacheManager's default settings since neither property 'configurationProperties' "
                        + "nor property 'configurationPropertiesFileLocation' has been set. However, those two are not equal.",
               new RemoteCacheManager().getProperties(), remoteCacheManager.getNativeCacheManager()
                        .getProperties());
      objectUnderTest.destroy();
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.