-
Notifications
You must be signed in to change notification settings - Fork 21
Closed
Labels
Description
In some cases we need to verify if the value on the table is the same value of the expected and the expected value can be null. Then isEqualTo(null) should work if the actual and the expected is null too.
example:
Application application = new Application();
application.setName = null;
dao.save(application);
Table applicationTable = new Table(dataSource, DatabaseHelper.APPLICATION_TABLE_NAME);
assertThat(applicationTable).row(0).column("name").value().isEqualTo(application.getName());
In this case I dont want to use isNull because I can modify the name attribute from null to a valid value later and my tests still passing.