Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ARSnova Backend
Manage
Activity
Members
Labels
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Privacy
Imprint
Contact
Snippets
Groups
Projects
Show more breadcrumbs
Paul-Christian Volkmer
ARSnova Backend
Commits
41c0b0a8
Commit
41c0b0a8
authored
7 years ago
by
Daniel Gerhardt
Browse files
Options
Downloads
Patches
Plain Diff
Adjust tests
parent
1f3bd6bb
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/test/java/de/thm/arsnova/controller/CourseControllerTest.java
+4
-4
4 additions, 4 deletions
.../java/de/thm/arsnova/controller/CourseControllerTest.java
with
4 additions
and
4 deletions
src/test/java/de/thm/arsnova/controller/CourseControllerTest.java
+
4
−
4
View file @
41c0b0a8
...
...
@@ -89,15 +89,15 @@ public class CourseControllerTest {
public
void
testShouldIndicateNotImplementedIfInactiveClient
()
throws
Exception
{
setAuthenticated
(
true
,
"ptsr00"
);
mockMvc
.
perform
(
get
(
"/mycourses"
).
accept
(
MediaType
.
TEXT_PLAI
N
))
.
andExpect
(
status
().
isNotImplemented
());
mockMvc
.
perform
(
get
(
"/mycourses"
).
accept
(
MediaType
.
APPLICATION_JSO
N
))
.
andExpect
(
status
().
isNotImplemented
());
}
@Test
public
void
testShouldNotReturnCurrentUsersCoursesIfUnauthorized
()
throws
Exception
{
setAuthenticated
(
false
,
"nobody"
);
mockMvc
.
perform
(
get
(
"/mycourses"
).
accept
(
MediaType
.
TEXT_PLAI
N
))
.
andExpect
(
status
().
isUnauthorized
());
mockMvc
.
perform
(
get
(
"/mycourses"
).
accept
(
MediaType
.
APPLICATION_JSO
N
))
.
andExpect
(
status
().
isUnauthorized
());
}
}
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