Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DBRepo
Manage
Activity
Members
Labels
Plan
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FAIR Data Austria DB Repository
DBRepo
Commits
585bbe01
Unverified
Commit
585bbe01
authored
2 years ago
by
Martin Weise
Browse files
Options
Downloads
Patches
Plain Diff
Fixed the map
parent
1277b08e
No related branches found
No related tags found
2 merge requests
!163
Relase 1.3.0
,
!139
Implementation of multi-column foreign key, unique and check constraint support
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
fda-query-service/rest-service/src/test/java/at/tuwien/service/QueryServiceIntegrationTest.java
+8
-4
8 additions, 4 deletions
...t/java/at/tuwien/service/QueryServiceIntegrationTest.java
with
8 additions
and
4 deletions
fda-query-service/rest-service/src/test/java/at/tuwien/service/QueryServiceIntegrationTest.java
+
8
−
4
View file @
585bbe01
...
@@ -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
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment