Use message in all Assert
This ensures compatibility with Spring 5. Fixes gh-4193
This commit is contained in:
@@ -22,7 +22,7 @@ public class SeedData implements InitializingBean {
|
||||
private BankDao bankDao;
|
||||
|
||||
public void afterPropertiesSet() throws Exception {
|
||||
Assert.notNull(bankDao);
|
||||
Assert.notNull(bankDao, "bankDao cannot be null");
|
||||
bankDao.createOrUpdateAccount(new Account("rod"));
|
||||
bankDao.createOrUpdateAccount(new Account("dianne"));
|
||||
bankDao.createOrUpdateAccount(new Account("scott"));
|
||||
|
||||
Reference in New Issue
Block a user