eyalgo
9/11/2014 - 8:31 PM

ExampleDaoTest.java

@ContextConfiguration(locations = { "/META-INF/one-dao-TEST-ctx.xml", "/META-INF/two-TEST-ctx.xml" })
public class ExampleDaoTest extends AbstractJUnit4SpringContextTests {

	@ClassRule
	public static DbCleanupRule  connectionRule = new DbCleanupRule ();
	
	@Rule
	public DbCleanupRule dbCleanupRule = new DbCleanupRule(connectionRule.getDbConnecttion()); 

	@Autowired
	private ExampleDao classToTest;

	@Test
	public void foo() {
	}
}