@Test public void getSystem() { Mockito.when(systemResolver.resolve(NAME, snitchRegistry)).thenReturn(System.empty(NAME)); Assert.assertEquals(System.empty(NAME), service.get()); }
@Override @CacheResult(cacheName = "io.cereebro.system") public System get() { return systemResolver.resolve(name, snitchRegistry); }
DefaultSystemService implements SystemService { @Override @CacheResult(cacheName = "io.cereebro.system") public System get() { return systemResolver.resolve(name, snitchRegistry); } }
DefaultSystemService implements SystemService { @Override @CacheResult(cacheName = "io.cereebro.system") public System get() { return systemResolver.resolve(name, snitchRegistry); } DefaultSystemService(String name, SystemResolver systemResolver, SnitchRegistry snitchRegistry); }
DefaultSystemService implements SystemService { @Override @CacheResult(cacheName = "io.cereebro.system") public System get() { return systemResolver.resolve(name, snitchRegistry); } DefaultSystemService(String name, SystemResolver systemResolver, SnitchRegistry snitchRegistry); @Override @CacheResult(cacheName = "io.cereebro.system") System get(); }
DefaultSystemService implements SystemService { @Override @CacheResult(cacheName = "io.cereebro.system") public System get() { return systemResolver.resolve(name, snitchRegistry); } DefaultSystemService(String name, SystemResolver systemResolver, SnitchRegistry snitchRegistry); @Override @CacheResult(cacheName = "io.cereebro.system") System get();  }