Skip to content
Snippets Groups Projects
Unverified Commit 585bbe01 authored by Martin Weise's avatar Martin Weise
Browse files

Fixed the map

parent 1277b08e
No related branches found
No related tags found
2 merge requests!163Relase 1.3.0,!139Implementation of multi-column foreign key, unique and check constraint support
...@@ -261,7 +261,8 @@ public class QueryServiceIntegrationTest extends BaseUnitTest { ...@@ -261,7 +261,8 @@ public class QueryServiceIntegrationTest extends BaseUnitTest {
TableMalformedException, DatabaseConnectionException, DatabaseNotFoundException, ImageNotSupportedException, TableMalformedException, DatabaseConnectionException, DatabaseNotFoundException, ImageNotSupportedException,
ContainerNotFoundException, InterruptedException { ContainerNotFoundException, InterruptedException {
final TableCsvDto request = TableCsvDto.builder() final TableCsvDto request = TableCsvDto.builder()
.data(Map.of("date", "2008-12-04", .data(Map.of("id", 4L,
"date", "2008-12-04",
"location", "Melbourne", "location", "Melbourne",
"mintemp", 5, "mintemp", 5,
"rainfall", 0)) "rainfall", 0))
...@@ -282,7 +283,8 @@ public class QueryServiceIntegrationTest extends BaseUnitTest { ...@@ -282,7 +283,8 @@ public class QueryServiceIntegrationTest extends BaseUnitTest {
@Test @Test
public void insert_violatingForeignKey_fails() throws InterruptedException { public void insert_violatingForeignKey_fails() throws InterruptedException {
final TableCsvDto request = TableCsvDto.builder() final TableCsvDto request = TableCsvDto.builder()
.data(Map.of("date", "2008-12-04", .data(Map.of("id", 4L,
"date", "2008-12-04",
"location", "Mexico City", // not in referenced table "location", "Mexico City", // not in referenced table
"mintemp", 5, "mintemp", 5,
"rainfall", 0)) "rainfall", 0))
...@@ -305,7 +307,8 @@ public class QueryServiceIntegrationTest extends BaseUnitTest { ...@@ -305,7 +307,8 @@ public class QueryServiceIntegrationTest extends BaseUnitTest {
@Test @Test
public void insert_violatingUnique_fails() throws InterruptedException { public void insert_violatingUnique_fails() throws InterruptedException {
final TableCsvDto request = TableCsvDto.builder() final TableCsvDto request = TableCsvDto.builder()
.data(Map.of("date", "2008-12-03", // entry with date already exists .data(Map.of("id", 4L,
"date", "2008-12-03", // entry with date already exists
"location", "Melbourne", "location", "Melbourne",
"mintemp", 5, "mintemp", 5,
"rainfall", 0)) "rainfall", 0))
...@@ -328,7 +331,8 @@ public class QueryServiceIntegrationTest extends BaseUnitTest { ...@@ -328,7 +331,8 @@ public class QueryServiceIntegrationTest extends BaseUnitTest {
@Test @Test
public void insert_violatingCheck_fails() throws InterruptedException { public void insert_violatingCheck_fails() throws InterruptedException {
final TableCsvDto request = TableCsvDto.builder() final TableCsvDto request = TableCsvDto.builder()
.data(Map.of("date", "2008-12-04", .data(Map.of("id", 4L,
"date", "2008-12-04",
"location", "Melbourne", "location", "Melbourne",
"mintemp", -1, // mintemp is smaller than 0, which is not allowed "mintemp", -1, // mintemp is smaller than 0, which is not allowed
"rainfall", 0)) "rainfall", 0))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment