public void testShouldInterpolateWhenNoEnvVarsVariables() { HostContextFactory context = new HostContextFactory(); assertEquals("file:///home/dir", context.interpolate("file:///home/dir")); }
public void testShouldInterpolateWithEnvVarsVariables() { HostContextFactory context = new HostContextFactory(); assertEquals( "file:///" + System.getenv("JBOSS_HOME") + "/conf", context.interpolate("file:///${env.JBOSS_HOME}/conf")); }