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
Commits
e3530f3e
Commit
e3530f3e
authored
2 years ago
by
Eduard Frankford
Browse files
Options
Downloads
Patches
Plain Diff
little improvements
parent
160583a8
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!188
Merging Peer Reviewing et. al to Master
,
!164
211 peer reviewing functionality
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/test/java/at/ac/uibk/gitsearch/web/rest/StatisticsResourceIT.java
+2
-14
2 additions, 14 deletions
...a/at/ac/uibk/gitsearch/web/rest/StatisticsResourceIT.java
with
2 additions
and
14 deletions
src/test/java/at/ac/uibk/gitsearch/web/rest/StatisticsResourceIT.java
+
2
−
14
View file @
e3530f3e
...
...
@@ -61,7 +61,6 @@ public class StatisticsResourceIT {
private
static
final
Integer
UPDATED_DOWNLOADS
=
2
;
private
static
final
String
DEFAULT_EXERCISE_ID
=
"1"
;
private
static
final
String
UPDATED_EXERCISE_ID
=
"2"
;
final
String
publicGitLabProjectId
=
"3"
;
...
...
@@ -124,17 +123,6 @@ public class StatisticsResourceIT {
return
statistics
;
}
/**
* Create an updated entity for this test.
*
* This is a static method, as tests for other entities might also need it, if
* they test an entity which requires the current entity.
*/
public
static
Statistics
createUpdatedEntity
(
EntityManager
em
)
{
Statistics
statistics
=
new
Statistics
().
views
(
UPDATED_VIEWS
).
downloads
(
UPDATED_DOWNLOADS
).
exerciseID
(
UPDATED_EXERCISE_ID
);
return
statistics
;
}
@BeforeEach
public
void
initTest
()
{
statistics
=
createEntity
(
em
);
...
...
@@ -259,7 +247,7 @@ public class StatisticsResourceIT {
// Disconnect from session so that the updates on updatedStatistics are not
// directly saved in db
em
.
detach
(
updatedStatistics
);
updatedStatistics
.
views
(
UPDATED_VIEWS
).
downloads
(
UPDATED_DOWNLOADS
).
exerciseID
(
UPDATED
_EXERCISE_ID
);
updatedStatistics
.
views
(
UPDATED_VIEWS
).
downloads
(
UPDATED_DOWNLOADS
).
exerciseID
(
DEFAULT
_EXERCISE_ID
);
StatisticsDTO
statisticsDTO
=
statisticsMapper
.
toDto
(
updatedStatistics
);
restStatisticsMockMvc
...
...
@@ -277,7 +265,7 @@ public class StatisticsResourceIT {
Statistics
testStatistics
=
statisticsList
.
get
(
statisticsList
.
size
()
-
1
);
assertThat
(
testStatistics
.
getViews
()).
isEqualTo
(
UPDATED_VIEWS
);
assertThat
(
testStatistics
.
getDownloads
()).
isEqualTo
(
UPDATED_DOWNLOADS
);
assertThat
(
testStatistics
.
getExerciseID
()).
isEqualTo
(
UPDATED
_EXERCISE_ID
);
assertThat
(
testStatistics
.
getExerciseID
()).
isEqualTo
(
DEFAULT
_EXERCISE_ID
);
}
@Test
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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