use of io.github.jhipster.config.JHipsterProperties in project ArTEMiS by ls1intum.
the class WebConfigurerTest method setup.
@Before
public void setup() {
servletContext = spy(new MockServletContext());
doReturn(new MockFilterRegistration()).when(servletContext).addFilter(anyString(), any(Filter.class));
doReturn(new MockServletRegistration()).when(servletContext).addServlet(anyString(), any(Servlet.class));
env = new MockEnvironment();
props = new JHipsterProperties();
webConfigurer = new WebConfigurer(env, props);
metricRegistry = new MetricRegistry();
webConfigurer.setMetricRegistry(metricRegistry);
}
Aggregations