More test cleanup

This commit is contained in:
James Agnew 2017-08-24 22:19:12 -04:00
parent e95e2e92c1
commit ff8b5607f3
3 changed files with 10 additions and 7 deletions

View File

@ -53,9 +53,9 @@ public class DaoConfig {
"http://hl7.org/fhir/StructureDefinition/*")));
/**
* Default value for {@link #setMaximumSearchResultCountInTransaction(int)}
*
* @see #setMaximumSearchResultCountInTransaction(int)
* Default value for {@link #setMaximumSearchResultCountInTransaction(Integer)}
*
* @see #setMaximumSearchResultCountInTransaction(Integer)
*/
private static final Integer DEFAULT_MAXIMUM_SEARCH_RESULT_COUNT_IN_TRANSACTION = null;
@ -220,7 +220,7 @@ public class DaoConfig {
*/
public List<IServerInterceptor> getInterceptors() {
if (myInterceptors == null) {
myInterceptors = new ArrayList<IServerInterceptor>();
myInterceptors = new ArrayList<>();
}
return myInterceptors;
}

View File

@ -154,10 +154,15 @@ public class FhirResourceDaoR4SearchPageExpiryTest extends BaseJpaR4Test {
newTxTemplate().execute(new TransactionCallbackWithoutResult() {
@Override
protected void doInTransactionWithoutResult(TransactionStatus theArg0) {
assertNull(mySearchEntityDao.findByUuid(searchUuid1));
assertNotNull(mySearchEntityDao.findByUuid(searchUuid3));
}
});
newTxTemplate().execute(new TransactionCallbackWithoutResult() {
@Override
protected void doInTransactionWithoutResult(TransactionStatus theArg0) {
assertNull(mySearchEntityDao.findByUuid(searchUuid1));
}
});
Thread.sleep(300);

View File

@ -126,8 +126,6 @@ public interface IServerInterceptor {
* will be aborted with an appropriate error returned to the client.
* </p>
*
* @param theServletRequest
* The incoming servlet request as provided by the servlet container
* @param theOperation
* The type of operation that the FHIR server has determined that the client is trying to invoke
* @param theProcessedRequest