Add test asserts
This commit is contained in:
parent
79ad0aebb5
commit
6200cd2ddc
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue