@Test public void testDashAliases() { Map<String, String> env = toMap("SERVER_EXECUTOR_dash_SERVICE_MAX_dash_POOL_dash_SIZE", "16", "APP_PAGE_DASH_SIZE", "17"); Map<String, String> expanded = EnvironmentVariables.expand(env); assertThat(expanded, is(not(nullValue()))); assertThat(expanded.size(), is(6)); assertThat(expanded, hasEntry("SERVER_EXECUTOR_dash_SERVICE_MAX_dash_POOL_dash_SIZE", "16")); assertThat(expanded, hasEntry("SERVER.EXECUTOR-SERVICE.MAX-POOL-SIZE", "16")); assertThat(expanded, hasEntry("server.executor-service.max-pool-size", "16")); assertThat(expanded, hasEntry("APP_PAGE_DASH_SIZE", "17")); assertThat(expanded, hasEntry("APP.PAGE-SIZE", "17")); assertThat(expanded, hasEntry("app.page-size", "17")); }
public static Map<String, String> expand() { return expand(System.getenv()); }
EnvironmentVariables { public static Map<String, String> expand() { return expand(System.getenv()); } }
EnvironmentVariables { public static Map<String, String> expand() { return expand(System.getenv()); } private  EnvironmentVariables(); }
EnvironmentVariables { public static Map<String, String> expand() { return expand(System.getenv()); } private  EnvironmentVariables(); static boolean shouldAlias(final String name); static Map<String, String> expand(); static Map<String, String> expand(final Map<String, String> env); }
EnvironmentVariables { public static Map<String, String> expand() { return expand(System.getenv()); } private  EnvironmentVariables(); static boolean shouldAlias(final String name); static Map<String, String> expand(); static Map<String, String> expand(final Map<String, String> env);  }