/** * Creates a default {@link Configuration} for testing. */ public void initConfiguration() throws IOException { setAlluxioWorkDirectory(); setHostname(); for (Entry<PropertyKey, String> entry : ConfigurationTestUtils .testConfigurationDefaults(mHostname, mWorkDirectory).entrySet()) { Configuration.set(entry.getKey(), entry.getValue()); } Configuration.set(PropertyKey.TEST_MODE, true); Configuration.set(PropertyKey.MASTER_RPC_PORT, 0); Configuration.set(PropertyKey.MASTER_WEB_PORT, 0); Configuration.set(PropertyKey.PROXY_WEB_PORT, 0); Configuration.set(PropertyKey.WORKER_RPC_PORT, 0); Configuration.set(PropertyKey.WORKER_DATA_PORT, 0); Configuration.set(PropertyKey.WORKER_WEB_PORT, 0); }