Try to fix an intermittent test failure
This commit is contained in:
parent
2464599a68
commit
da3b4d4071
|
@ -32,10 +32,7 @@ import org.hl7.fhir.dstu3.model.Resource;
|
|||
import org.hl7.fhir.instance.model.api.IBaseBundle;
|
||||
import org.hl7.fhir.instance.model.api.IBaseResource;
|
||||
import org.hl7.fhir.instance.model.api.IIdType;
|
||||
import org.junit.After;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.Before;
|
||||
import org.junit.Rule;
|
||||
import org.junit.*;
|
||||
import org.mockito.Mockito;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.orm.jpa.JpaTransactionManager;
|
||||
|
@ -126,11 +123,6 @@ public abstract class BaseJpaTest {
|
|||
when(mySrd.getHeaders(eq(JpaConstants.HEADER_META_SNAPSHOT_MODE))).thenReturn(new ArrayList<>());
|
||||
}
|
||||
|
||||
@Before
|
||||
public void beforeRandomizeLocale() {
|
||||
randomizeLocale();
|
||||
}
|
||||
|
||||
protected abstract FhirContext getContext();
|
||||
|
||||
protected abstract PlatformTransactionManager getTxManager();
|
||||
|
@ -333,6 +325,11 @@ public abstract class BaseJpaTest {
|
|||
return retVal.toArray(new String[retVal.size()]);
|
||||
}
|
||||
|
||||
@BeforeClass
|
||||
public static void beforeClassRandomizeLocale() {
|
||||
randomizeLocale();
|
||||
}
|
||||
|
||||
@SuppressWarnings("RedundantThrows")
|
||||
@AfterClass
|
||||
public static void afterClassClearContext() throws Exception {
|
||||
|
|
Loading…
Reference in New Issue