1 package ${package}.util;
3 import com.griddynamics.jagger.util.JaggerXmlApplicationContext;
4 import org.springframework.beans.factory.annotation.Autowired;
5 import org.springframework.context.ApplicationContext;
6 import org.springframework.context.annotation.Configuration;
7 import org.springframework.context.annotation.PropertySource;
8 import org.springframework.core.env.Environment;
17 @PropertySource(
"classpath:test.properties")
21 private ApplicationContext jaggerContext;
24 private Environment testEnv;
27 return ((JaggerXmlApplicationContext) jaggerContext).getEnvironmentProperties().getProperty(key);
31 return testEnv.getRequiredProperty(key);