Auto close contextx in JPA tests

This commit is contained in:
James Agnew 2016-05-27 10:27:32 -04:00
parent b4de3aa5dd
commit fd7f9a9b98
2 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,20 @@
package ca.uhn.fhir.jpa.z;
import org.junit.Test;
import org.springframework.test.annotation.DirtiesContext;
import ca.uhn.fhir.jpa.dao.dstu2.BaseJpaDstu2Test;
public class ZContextCloserDstu2Test extends BaseJpaDstu2Test {
/**
* this is just here to close the context when this package's test are done
*/
@Test
@DirtiesContext()
public void testCloseContext() {
// nothing
}
}

View File

@ -0,0 +1,20 @@
package ca.uhn.fhir.jpa.z;
import org.junit.Test;
import org.springframework.test.annotation.DirtiesContext;
import ca.uhn.fhir.jpa.dao.dstu3.BaseJpaDstu3Test;
public class ZContextCloserDstu3Test extends BaseJpaDstu3Test {
/**
* this is just here to close the context when this package's test are done
*/
@Test
@DirtiesContext()
public void testCloseContext() {
// nothing
}
}