@Test public void testNotAliased() { Map<String, String> env = toMap("", "v", "_", "v", "__", "v", "x__y", "v", "_xy", "v", "xy_", "v", "xyz", "v"); Map<String, String> mapped = EnvironmentVariables.expand(env); assertThat(mapped, is(not(nullValue()))); assertThat(mapped.size(), is(7)); assertThat(mapped, hasEntry("", "v")); assertThat(mapped, hasEntry("_", "v")); assertThat(mapped, hasEntry("__", "v")); assertThat(mapped, hasEntry("x__y", "v")); assertThat(mapped, hasEntry("_xy", "v")); assertThat(mapped, hasEntry("xy_", "v")); assertThat(mapped, hasEntry("xyz", "v")); }
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);  }