fix tests

This commit is contained in:
2021-12-10 00:51:38 +01:00
parent 43856dffab
commit fb234fa50e
5 changed files with 12 additions and 8 deletions

View File

@@ -22,12 +22,13 @@ javafx {
dependencies { dependencies {
// https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-api // https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-api
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.5.2' testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.8.2'
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-params', version: '5.5.2' testRuntimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.8.2'
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-params', version: '5.8.2'
testImplementation group: 'org.hamcrest', name: 'hamcrest-library', version: '2.2' testImplementation group: 'org.hamcrest', name: 'hamcrest-library', version: '2.2'
testImplementation group: 'org.mockito', name: 'mockito-core', version:'3.1.0' testImplementation group: 'org.mockito', name: 'mockito-core', version:'3.1.0'
implementation group: 'org.apache.groovy', name: 'groovy', version: '4.0.0-rc-1' implementation group: 'org.apache.groovy', name: 'groovy', version: '4.0.0-rc-1'
implementation (group: 'org.springframework', name:'spring-context', version: '5.3.13') implementation group: 'org.springframework', name:'spring-context', version: '5.3.13'
implementation group: 'de.siegmar', name: 'fastcsv', version: '2.1.0' implementation group: 'de.siegmar', name: 'fastcsv', version: '2.1.0'
implementation group: 'commons-validator', name: 'commons-validator', version: '1.7' implementation group: 'commons-validator', name: 'commons-validator', version: '1.7'
implementation group: 'de.jensd', name: 'fontawesomefx-commons', version: '11.0' implementation group: 'de.jensd', name: 'fontawesomefx-commons', version: '11.0'

View File

@@ -28,8 +28,9 @@ package ninja.javafx.smartcsv.fx.table.model;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.*; import static org.hamcrest.Matchers.*;
import static org.junit.Assert.assertThat;
/** /**
* unit test for the csv model * unit test for the csv model

View File

@@ -2,9 +2,10 @@ package ninja.javafx.smartcsv.fx.table.model;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.hasKey; import static org.hamcrest.Matchers.hasKey;
import static org.hamcrest.Matchers.is; import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;
/** /**
* unit test for row class * unit test for row class

View File

@@ -38,9 +38,10 @@ import java.util.stream.Stream;
import static java.util.Arrays.asList; import static java.util.Arrays.asList;
import static java.util.Collections.singletonList; import static java.util.Collections.singletonList;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is; import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat; import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.Assert.assertTrue;
/** /**
* unit test for header validator * unit test for header validator

View File

@@ -12,9 +12,9 @@ import java.util.stream.Stream;
import static java.util.Arrays.asList; import static java.util.Arrays.asList;
import static java.util.stream.Collectors.joining; import static java.util.stream.Collectors.joining;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.contains; import static org.hamcrest.Matchers.contains;
import static org.hamcrest.Matchers.is; import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;
/** /**
* unit test for validator * unit test for validator