mirror of
https://github.com/frosch95/SmartCSV.fx.git
synced 2026-04-11 13:38:23 +02:00
new feature: clickable error list
This commit is contained in:
@@ -68,12 +68,12 @@ public class ValidatorTest {
|
||||
@Test
|
||||
public void validation() {
|
||||
// execution
|
||||
ValidationState result = sut.isValid(column, value);
|
||||
ValidationError result = sut.isValid(column, value, 0);
|
||||
|
||||
// assertion
|
||||
assertThat(result.isValid(), is(expectedResult));
|
||||
assertThat(result == null, is(expectedResult));
|
||||
if (!expectedResult) {
|
||||
assertThat(result.error(), is(expectedError));
|
||||
assertThat(result.getMessage(), is(expectedError));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user