Auto close contextx in JPA tests
This commit is contained in:
parent
b4de3aa5dd
commit
fd7f9a9b98
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue