Add test asserts

This commit is contained in:
James Agnew 2020-02-19 21:21:22 -05:00
parent 79ad0aebb5
commit 6200cd2ddc
1 changed files with 5 additions and 1 deletions

View File

@ -227,10 +227,14 @@ public class PersistedJpaBundleProvider implements IBundleProvider {
template.execute(new TransactionCallbackWithoutResult() {
@Override
protected void doInTransactionWithoutResult(TransactionStatus theStatus) {
ensureSearchEntityLoaded();
boolean entityLoaded = ensureSearchEntityLoaded();
assert entityLoaded;
}
});
assert mySearchEntity != null;
assert mySearchEntity.getSearchType() != null;
switch (mySearchEntity.getSearchType()) {
case HISTORY:
return template.execute(theStatus -> doHistoryInTransaction(theFromIndex, theToIndex));