mirror of
https://github.com/frosch95/SmartCSV.fx.git
synced 2026-04-11 13:38:23 +02:00
fix tests
This commit is contained in:
@@ -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'
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user