summaryrefslogtreecommitdiffstats
path: root/src/test/java
diff options
context:
space:
mode:
authorDominic Rogetzer <e1627756@student.tuwien.ac.at>2018-05-22 16:34:22 +0200
committerTharre <tharre3@gmail.com>2018-05-22 17:06:20 +0200
commitb351bbf12564c813728cd5efe00aa986ff64b083 (patch)
treead3891284ec9a7c0c0181e7719486af956e878db /src/test/java
parent5181c5fbe243eaafaa03d29bf92a956d237b77d9 (diff)
downloadsepm-groupproject-b351bbf12564c813728cd5efe00aa986ff64b083.tar.gz
sepm-groupproject-b351bbf12564c813728cd5efe00aa986ff64b083.tar.xz
sepm-groupproject-b351bbf12564c813728cd5efe00aa986ff64b083.zip
Remove id-columns at comparison [#25874]
Cannot ensure that next autogenerated id is X, because DBUnit just refreshes the DB, which is deleting the entries but not resetting sequences
Diffstat (limited to 'src/test/java')
-rw-r--r--src/test/java/at/ac/tuwien/sepm/assignment/groupphase/einsatzverwaltung/dao/EmployeePersistenceTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/java/at/ac/tuwien/sepm/assignment/groupphase/einsatzverwaltung/dao/EmployeePersistenceTest.java b/src/test/java/at/ac/tuwien/sepm/assignment/groupphase/einsatzverwaltung/dao/EmployeePersistenceTest.java
index 1202641..5536c1c 100644
--- a/src/test/java/at/ac/tuwien/sepm/assignment/groupphase/einsatzverwaltung/dao/EmployeePersistenceTest.java
+++ b/src/test/java/at/ac/tuwien/sepm/assignment/groupphase/einsatzverwaltung/dao/EmployeePersistenceTest.java
@@ -136,7 +136,7 @@ public class EmployeePersistenceTest extends JdbcTestCase {
employeePersistence.add(validEmployee);
- String[] excludedColumnsEmployee = new String[] {"VERSION"};
+ String[] excludedColumnsEmployee = new String[] {"VERSION", "ID"};
String tableEmployee = "EMPLOYEE";
// load actual and expected data set
@@ -164,7 +164,7 @@ public class EmployeePersistenceTest extends JdbcTestCase {
employeePersistence.add(validEmployee);
- String[] excludedColumns = new String[] {"E_VERSION", "V_ID"};
+ String[] excludedColumns = new String[] {"E_VERSION", "V_ID", "E_ID"};
String table = "EMP_JOIN";
String expectedXmlDataFileName = "testAddValidEmployeeJoin_expected.xml";