package gov.nysenate.openleg; import gov.nysenate.openleg.config.ConsoleApplicationConfig; import gov.nysenate.openleg.config.WebApplicationConfig; import org.junit.Before; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ActiveProfiles; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import org.springframework.test.context.web.WebAppConfiguration; import org.springframework.test.web.servlet.MockMvc; import org.springframework.web.context.WebApplicationContext; import static org.springframework.test.web.servlet.setup.MockMvcBuilders.webAppContextSetup; @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(classes = {TestConfig.class, ConsoleApplicationConfig.class}) @ActiveProfiles("test") public abstract class BaseTests { @Before public void setup() {} }