Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
05f056bb
Commit
05f056bb
authored
Apr 21, 2019
by
Greg Messner
Browse files
Remove code that disabled logging.
parent
b66a0517
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/test/java/org/gitlab4j/api/TestGitLabApiEvents.java
View file @
05f056bb
...
@@ -269,9 +269,6 @@ public class TestGitLabApiEvents {
...
@@ -269,9 +269,6 @@ public class TestGitLabApiEvents {
@Test
@Test
public
void
testSystemHookManagerHandleEvent
()
throws
Exception
{
public
void
testSystemHookManagerHandleEvent
()
throws
Exception
{
// Turn off logging. This is a hack as if we don't turn it off the logging tests ran later will fail
GitLabApi
.
getLogger
().
setLevel
(
Level
.
OFF
);;
// Arrange
// Arrange
HttpServletRequest
request
=
mock
(
HttpServletRequest
.
class
);
HttpServletRequest
request
=
mock
(
HttpServletRequest
.
class
);
given
(
request
.
getHeader
(
"X-Gitlab-Event"
)).
willReturn
(
SystemHookManager
.
SYSTEM_HOOK_EVENT
);
given
(
request
.
getHeader
(
"X-Gitlab-Event"
)).
willReturn
(
SystemHookManager
.
SYSTEM_HOOK_EVENT
);
...
...
Write
Preview
Supports
Markdown
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!
Cancel
Please
register
or
sign in
to comment