From a8544147e109cc3c25754fdb51c86a7165a2f0a1 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Thu, 22 Nov 2012 21:57:18 +0000 Subject: remove this ugly Object getPrincipal method git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1412689 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/archiva/web/rss/SecuritySystemStub.java | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) (limited to 'archiva-modules/archiva-web/archiva-web-common/src/test') 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() -- cgit v1.2.3