This is the codeAbility Sharing Platform! Learn more about the
codeAbility Sharing Platform
.
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
codeAbility Sharing Platform
Manage
Activity
Members
Labels
Plan
Issues
43
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
development
sharing
codeAbility Sharing Platform
Merge requests
!156
fixed e2e tests
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
fixed e2e tests
fix_e2e_tests
into
development
Overview
1
Commits
3
Pipelines
0
Changes
11
Merged
Eduard Frankford
requested to merge
fix_e2e_tests
into
development
2 years ago
Overview
1
Commits
3
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Compare
version 2
version 2
c6bd7424
2 years ago
version 1
5e2f1d5f
2 years ago
development (base)
and
latest version
latest version
a7409681
3 commits,
2 years ago
version 2
c6bd7424
2 commits,
2 years ago
version 1
5e2f1d5f
1 commit,
2 years ago
Show latest version
1 file
+
5
−
0
Expand all files
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/test/java/at/ac/uibk/gitsearch/web/rest/StatisticsResourceIT.java
+
5
−
0
Options
@@ -348,10 +348,15 @@ public class StatisticsResourceIT {
//After the following call a new statistics entity for the exerciseID 143 should have been created because there exists a resource with this id in elastic search from stefan podlipnig
restStatisticsMockMvc
.
perform
(
get
(
"/api/statistics/exercise/{id}"
,
"143"
).
with
(
csrf
().
asHeader
())).
andExpect
(
status
().
isOk
());
//wait for the statistics to be created
Thread
.
sleep
(
1000
);
assertEquals
(
statisticsService
.
findOneByExerciseID
(
"143"
).
get
().
getExerciseID
(),
"143"
);
//Do the same call again to see if the statisticsService understood that the entity already exists and it only needs to increase the views
restStatisticsMockMvc
.
perform
(
get
(
"/api/statistics/exercise/{id}"
,
"143"
).
with
(
csrf
().
asHeader
())).
andExpect
(
status
().
isOk
());
//wait for the statistics to be created
Thread
.
sleep
(
1000
);
assertEquals
(
statisticsService
.
findOneByExerciseID
(
"143"
).
get
().
getViews
(),
2
);
//Test the search for an id which does not exist