1 package org.onap.msb.apiroute.wrapper.consulextend.cache;
3 import org.junit.Assert;
5 import org.onap.msb.apiroute.wrapper.consulextend.Consul;
6 import org.onap.msb.apiroute.wrapper.consulextend.cache.ServiceHealthCache;
8 import com.orbitz.consul.option.CatalogOptions;
10 public class ServiceHealthCacheTest {
13 public void testnewCache() {
14 Consul consul = Consul.newClient();
15 ServiceHealthCache cache1 = ServiceHealthCache.newCache(
16 consul.healthClient(), "huangleibo");
17 Assert.assertNotNull(cache1);
19 ServiceHealthCache cache2 = ServiceHealthCache.newCache(
20 consul.healthClient(), "huangleibo", false,
21 CatalogOptions.BLANK, 10);
22 Assert.assertNotNull(cache2);