@Test public void getWithUnrecognizedPrefixTest() { String prefix = "a.b"; Map<String,String> expectedPropertyMap = Map.of("a.b.favorite.license", "apache"); expect(acfg.spliterator()).andReturn(expectedPropertyMap.entrySet().spliterator()); replay(acfg); Map<String,String> returnedProperties = serviceEnvironment.getConfiguration().getWithPrefix(prefix); assertEquals(expectedPropertyMap, returnedProperties); }
@Override public Configuration getConfiguration() { return conf; }
ServiceEnvironmentImpl implements ServiceEnvironment { @Override public Configuration getConfiguration() { return conf; } }
ServiceEnvironmentImpl implements ServiceEnvironment { @Override public Configuration getConfiguration() { return conf; } ServiceEnvironmentImpl(ServerContext ctx); }
ServiceEnvironmentImpl implements ServiceEnvironment { @Override public Configuration getConfiguration() { return conf; } ServiceEnvironmentImpl(ServerContext ctx); @Override Configuration getConfiguration(); @Override Configuration getConfiguration(TableId tableId); @Override String getTableName(TableId tableId); @Override T instantiate(String className, Class<T> base); @Override T instantiate(TableId tableId, String className, Class<T> base); }
ServiceEnvironmentImpl implements ServiceEnvironment { @Override public Configuration getConfiguration() { return conf; } ServiceEnvironmentImpl(ServerContext ctx); @Override Configuration getConfiguration(); @Override Configuration getConfiguration(TableId tableId); @Override String getTableName(TableId tableId); @Override T instantiate(String className, Class<T> base); @Override T instantiate(TableId tableId, String className, Class<T> base);  }