ServerConfiguration { public String namespace() { return namespace; }  URI baseURI(); ServerConfiguration baseURI(String baseURI); ServerConfiguration baseURI(URI baseURI); long connectTimeout(); ServerConfiguration connectTimeout(long connectTimeout, TimeUnit unit); long readTimeout(); ServerConfiguration readTimeout(long readTimeout, TimeUnit unit); String certificatePath(); ServerConfiguration certificatePath(String certificatePath); String defaultGroup(); ServerConfiguration defaultGroup(String defaultGroup); String namespace(); ServerConfiguration namespace(String namespace); ServerConfiguration httpLoggingEnabled(boolean httpLoggingEnabled); boolean httpLoggingEnabled(); ServerConfiguration localStoreEnabled(boolean localStoreEnabled); long maxCacheSize(); ServerConfiguration maxCacheSize(long maxCacheSize); int initialCacheSize(); ServerConfiguration initialCacheSize(int initialCacheSize); long refreshCacheAfterWriteSeconds(); ServerConfiguration refreshCacheAfterWrite(long refreshCacheAfterWrite, TimeUnit unit); boolean localStoreEnabled(); static final long MAX_CACHE_SIZE; static final int INITIAL_CAPACITY; static final int REFRESH_AFTER_WRITE_S; }
@Test public void testConfigurationNamespace() throws Exception { ServerConfiguration configuration = new ServerConfiguration(); assertEquals(ServerConfiguration.DEFAULT_NAMESPACE, configuration.namespace()); configuration.namespace("production"); assertEquals("production", configuration.namespace()); }