mirror of
https://github.com/frosch95/SmartCSV.fx.git
synced 2026-04-11 21:48:22 +02:00
validation rules are now editable through context menu
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
|
||||
package ninja.javafx.smartcsv.fx.table.model;
|
||||
|
||||
import ninja.javafx.smartcsv.validation.ValidationConfiguration;
|
||||
import ninja.javafx.smartcsv.validation.Validator;
|
||||
import org.junit.Test;
|
||||
|
||||
@@ -77,20 +78,6 @@ public class CSVModelTest {
|
||||
assertThat(sut.getRows().indexOf(newRow), is(newRow.getRowNumber()));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void set_validator_calls_when_model_has_data() {
|
||||
|
||||
// setup
|
||||
Validator validator = mock(Validator.class);
|
||||
setup_model_with_one_row_one_column_and_value();
|
||||
|
||||
// execution
|
||||
sut.setValidator(validator);
|
||||
|
||||
// assertion
|
||||
verify(validator).isValid(TESTHEADER, TESTVALUE, 0);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// private methods
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user