Skip to content
Snippets Groups Projects
Commit 1a65566b authored by gpawel's avatar gpawel
Browse files

Removing unnecessary annotation

SVN: 25457
parent 813b637c
No related branches found
No related tags found
No related merge requests found
...@@ -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()
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment