Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
1a65566b
Commit
1a65566b
authored
12 years ago
by
gpawel
Browse files
Options
Downloads
Patches
Plain Diff
Removing unnecessary annotation
SVN: 25457
parent
813b637c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
authentication/sourceTest/java/ch/systemsx/cisd/authentication/DefaultSessionManagerTest.java
+4
-5
4 additions, 5 deletions
...stemsx/cisd/authentication/DefaultSessionManagerTest.java
with
4 additions
and
5 deletions
authentication/sourceTest/java/ch/systemsx/cisd/authentication/DefaultSessionManagerTest.java
+
4
−
5
View file @
1a65566b
...
@@ -48,9 +48,8 @@ public class DefaultSessionManagerTest
...
@@ -48,9 +48,8 @@ public class DefaultSessionManagerTest
private
static
final
String
REMOTE_HOST
=
"remote-host"
;
private
static
final
String
REMOTE_HOST
=
"remote-host"
;
/** Kind of dummy <code>Principal</code> to point out that the login was successful. */
/** Kind of dummy <code>Principal</code> to point out that the login was successful. */
private
static
final
Principal
principal
=
private
static
final
Principal
principal
=
new
Principal
(
"bla"
,
StringUtils
.
EMPTY
,
new
Principal
(
"bla"
,
StringUtils
.
EMPTY
,
StringUtils
.
EMPTY
,
StringUtils
.
EMPTY
,
StringUtils
.
EMPTY
,
true
);
StringUtils
.
EMPTY
,
true
);
private
static
final
int
SESSION_EXPIRATION_PERIOD_MINUTES
=
1
;
private
static
final
int
SESSION_EXPIRATION_PERIOD_MINUTES
=
1
;
...
@@ -96,7 +95,7 @@ public class DefaultSessionManagerTest
...
@@ -96,7 +95,7 @@ public class DefaultSessionManagerTest
logRecorder
=
new
BufferedAppender
(
"%-5p %c - %m%n"
,
Level
.
DEBUG
);
logRecorder
=
new
BufferedAppender
(
"%-5p %c - %m%n"
,
Level
.
DEBUG
);
}
}
@SuppressWarnings
(
{
"unchecked"
,
"rawtypes"
}
)
@SuppressWarnings
(
"unchecked"
)
private
ISessionManager
<
BasicSession
>
createSessionManager
(
int
sessionExpiration
)
private
ISessionManager
<
BasicSession
>
createSessionManager
(
int
sessionExpiration
)
{
{
return
new
DefaultSessionManager
(
sessionFactory
,
prefixGenerator
,
authenticationService
,
return
new
DefaultSessionManager
(
sessionFactory
,
prefixGenerator
,
authenticationService
,
...
@@ -328,7 +327,7 @@ public class DefaultSessionManagerTest
...
@@ -328,7 +327,7 @@ public class DefaultSessionManagerTest
{
{
final
String
user
=
"u1"
;
final
String
user
=
"u1"
;
final
Principal
sessionPrincipal
=
final
Principal
sessionPrincipal
=
new
Principal
(
user
,
StringUtils
.
EMPTY
,
StringUtils
.
EMPTY
,
StringUtils
.
EMPTY
,
true
);
new
Principal
(
user
,
StringUtils
.
EMPTY
,
StringUtils
.
EMPTY
,
StringUtils
.
EMPTY
,
true
);
prepareRemoteHostSessionFactoryAndPrefixGenerator
(
user
,
sessionPrincipal
);
prepareRemoteHostSessionFactoryAndPrefixGenerator
(
user
,
sessionPrincipal
);
context
.
checking
(
new
Expectations
()
context
.
checking
(
new
Expectations
()
{
{
...
...
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