fix junit due to previous changes

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1200020 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2011-11-09 22:54:03 +00:00
parent 609cdaabe9
commit 8424699c98
4 changed files with 5 additions and 2 deletions

View File

@ -609,7 +609,7 @@ public class DefaultRepositoriesService
public Boolean deleteArtifact( Artifact artifact, String repositoryId )
throws ArchivaRestServiceException
{
String userName = (String) getAuditInformation().getUser().getPrincipal();
String userName = (String) getAuditInformation().getUser().getUsername();
if ( StringUtils.isBlank( userName ) )
{
// TODO use constants from a class instead of magic number

View File

@ -243,7 +243,7 @@ public abstract class AbstractActionSupport
public String getUsername()
{
return null;
return this.principal;
}
public void setUsername( String name )

View File

@ -50,5 +50,6 @@
</value>
</property>
</bean>
<bean name="repositorySessionFactory" class="org.apache.archiva.webtest.memory.TestRepositorySessionFactory"/>
</beans>

View File

@ -51,4 +51,6 @@
</property>
</bean>
<bean name="repositorySessionFactory" class="org.apache.archiva.webtest.memory.TestRepositorySessionFactory"/>
</beans>