mirror of https://github.com/apache/archiva.git
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:
parent
609cdaabe9
commit
8424699c98
|
@ -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
|
||||
|
|
|
@ -243,7 +243,7 @@ public abstract class AbstractActionSupport
|
|||
|
||||
public String getUsername()
|
||||
{
|
||||
return null;
|
||||
return this.principal;
|
||||
}
|
||||
|
||||
public void setUsername( String name )
|
||||
|
|
|
@ -50,5 +50,6 @@
|
|||
</value>
|
||||
</property>
|
||||
</bean>
|
||||
<bean name="repositorySessionFactory" class="org.apache.archiva.webtest.memory.TestRepositorySessionFactory"/>
|
||||
|
||||
</beans>
|
||||
|
|
|
@ -51,4 +51,6 @@
|
|||
</property>
|
||||
</bean>
|
||||
|
||||
<bean name="repositorySessionFactory" class="org.apache.archiva.webtest.memory.TestRepositorySessionFactory"/>
|
||||
|
||||
</beans>
|
||||
|
|
Loading…
Reference in New Issue