use of org.junit.contrib.java.lang.system.EnvironmentVariables in project wso2-synapse by wso2.
the class ResolverFactoryTest method testSystemResolver.
public void testSystemResolver() {
String synapseVariable = "$SYSTEM:VAR";
String envValue = "https://localhost:8080/service";
Resolver resolver = ResolverFactory.getInstance().getResolver(synapseVariable);
assertNotNull(resolver);
assertTrue(resolver instanceof SystemResolver);
EnvironmentVariables environmentVariables = new EnvironmentVariables();
environmentVariables.set("VAR", envValue);
assertEquals(envValue, resolver.resolve());
}
Aggregations