Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
base-project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Datenbanken 2 - Praktikum
base-project
Commits
cb5d2d4f
Commit
cb5d2d4f
authored
3 years ago
by
Michael Roth
Browse files
Options
Downloads
Patches
Plain Diff
Fixed: Wrong number of questions in Test03
parent
8ecfc0c0
No related branches found
No related tags found
No related merge requests found
Pipeline
#98913
passed
3 years ago
Stage: build
Stage: check
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/test/java/de/hda/fbi/db2/test/Lab03Test.java
+2
-2
2 additions, 2 deletions
src/test/java/de/hda/fbi/db2/test/Lab03Test.java
with
2 additions
and
2 deletions
src/test/java/de/hda/fbi/db2/test/Lab03Test.java
+
2
−
2
View file @
cb5d2d4f
...
@@ -97,7 +97,7 @@ class Lab03Test {
...
@@ -97,7 +97,7 @@ class Lab03Test {
List
<?>
questions
=
gameController
.
getQuestions
(
categories
,
2
);
List
<?>
questions
=
gameController
.
getQuestions
(
categories
,
2
);
assertNotNull
(
questions
);
assertNotNull
(
questions
);
assertFalse
(
questions
.
isEmpty
(),
"Questions for categories should not be empty"
);
assertFalse
(
questions
.
isEmpty
(),
"Questions for categories should not be empty"
);
assertTrue
(
questions
.
size
()
<=
2
,
"Should at most return
2
questions"
);
assertTrue
(
questions
.
size
()
<=
4
,
"Should at most return
4
questions
, 2 per category
"
);
Object
player
=
gameController
.
getOrCreatePlayer
(
"PlayerName"
);
Object
player
=
gameController
.
getOrCreatePlayer
(
"PlayerName"
);
assertNotNull
(
player
);
assertNotNull
(
player
);
...
@@ -123,7 +123,7 @@ class Lab03Test {
...
@@ -123,7 +123,7 @@ class Lab03Test {
List
<?>
questions
=
gameController
.
getQuestions
(
categories
,
2
);
List
<?>
questions
=
gameController
.
getQuestions
(
categories
,
2
);
assertNotNull
(
questions
);
assertNotNull
(
questions
);
assertFalse
(
questions
.
isEmpty
(),
"Questions for categories should not be empty"
);
assertFalse
(
questions
.
isEmpty
(),
"Questions for categories should not be empty"
);
assertTrue
(
questions
.
size
()
<=
2
,
"Should at most return
2
questions"
);
assertTrue
(
questions
.
size
()
<=
4
,
"Should at most return
4
questions
, 2 per category
"
);
Object
player
=
gameController
.
getOrCreatePlayer
(
"PlayerName"
);
Object
player
=
gameController
.
getOrCreatePlayer
(
"PlayerName"
);
assertNotNull
(
player
);
assertNotNull
(
player
);
...
...
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