summaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-web/archiva-web-common/src/test
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2012-11-22 21:57:18 +0000
committerOlivier Lamy <olamy@apache.org>2012-11-22 21:57:18 +0000
commita8544147e109cc3c25754fdb51c86a7165a2f0a1 (patch)
treed7734e582c726acdbe94873c187eccde0a9324a0 /archiva-modules/archiva-web/archiva-web-common/src/test
parent9eafbcc85a8dc2873fa8c12d37ff56ff0c12381f (diff)
downloadarchiva-a8544147e109cc3c25754fdb51c86a7165a2f0a1.tar.gz
archiva-a8544147e109cc3c25754fdb51c86a7165a2f0a1.zip
remove this ugly Object getPrincipal method
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1412689 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-web/archiva-web-common/src/test')
-rw-r--r--archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/web/rss/SecuritySystemStub.java18
1 files changed, 5 insertions, 13 deletions
diff --git a/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/web/rss/SecuritySystemStub.java b/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/web/rss/SecuritySystemStub.java
index 63290698e..f49979acb 100644
--- a/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/web/rss/SecuritySystemStub.java
+++ b/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/web/rss/SecuritySystemStub.java
@@ -160,24 +160,20 @@ public class SecuritySystemStub
{
return new User()
{
- public Object getPrincipal()
- {
- return "guest";
- }
public String getUsername()
{
- return null; //To change body of implemented methods use File | Settings | File Templates.
+ return "guest";
}
public void setUsername( String name )
{
- //To change body of implemented methods use File | Settings | File Templates.
+
}
public String getFullName()
{
- return null; //To change body of implemented methods use File | Settings | File Templates.
+ return null;
}
public void setFullName( String name )
@@ -349,19 +345,15 @@ public class SecuritySystemStub
{
return new User()
{
- public Object getPrincipal()
- {
- return "guest";
- }
public String getUsername()
{
- return null; //To change body of implemented methods use File | Settings | File Templates.
+ return "guest";
}
public void setUsername( String name )
{
- //To change body of implemented methods use File | Settings | File Templates.
+
}
public String getFullName()