Skip to content

Instantly share code, notes, and snippets.

@eyalgo
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eyalgo/508aaf161f41ace2fef9 to your computer and use it in GitHub Desktop.
Save eyalgo/508aaf161f41ace2fef9 to your computer and use it in GitHub Desktop.
@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() {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment