From 834f9b4fff11c778dbb09dc74a88d658fc094a54 Mon Sep 17 00:00:00 2001
From: Felix Kehrer <felix.kehrer@gmail.com>
Date: Mon, 7 May 2018 18:06:00 +0200
Subject: Changed test behaviour to leave "clean" database for other tests

---
 src/main/resources/sql/H2RegistrationDAOTest_populate.sql | 5 +++++
 1 file changed, 5 insertions(+)

(limited to 'src/main/resources/sql/H2RegistrationDAOTest_populate.sql')

diff --git a/src/main/resources/sql/H2RegistrationDAOTest_populate.sql b/src/main/resources/sql/H2RegistrationDAOTest_populate.sql
index 3c268a0..7e7b428 100644
--- a/src/main/resources/sql/H2RegistrationDAOTest_populate.sql
+++ b/src/main/resources/sql/H2RegistrationDAOTest_populate.sql
@@ -1,3 +1,8 @@
+DELETE FROM Registration;
+DELETE FROM Vehicle;
+DELETE FROM VehicleVersion;
+DELETE FROM Employee;
+DELETE FROM EmployeeVersion;
 INSERT INTO EmployeeVersion (id, name, birthday, educationLevel, isDriver, isPilot) VALUES (1, 'John Doe', '2000-01-01', 'RS', TRUE, TRUE);
 INSERT INTO EmployeeVersion (id, name, birthday, educationLevel, isDriver, isPilot) VALUES (2, 'Nick "Kage" Verily', '1990-01-01', 'NKV', TRUE, FALSE);
 INSERT INTO EmployeeVersion (id, name, birthday, educationLevel, isDriver, isPilot) VALUES (3, 'Nicht Arzt', '1980-01-01', 'NA', FALSE, FALSE);
-- 
cgit v1.2.3-70-g09d2

