o missing bits

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@794821 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jason van Zyl 2009-07-16 20:05:57 +00:00
parent 3bcaf7ac83
commit 2aa1e07e0b
3 changed files with 7 additions and 43 deletions

View File

@ -23,14 +23,14 @@ public class Authentication
{
public Authentication( String userName, String password )
{
this.userName = userName;
this.username = userName;
this.password = password;
}
/**
* Username used to login to the host
*/
private String userName;
private String username;
/**
* Password associated with the login
@ -62,9 +62,9 @@ public class Authentication
*
* @return username at repository
*/
public String getUserName()
public String getUsername()
{
return userName;
return username;
}
/**
@ -72,8 +72,8 @@ public class Authentication
*
* @param userName the username used to access repository
*/
public void setUserName( final String userName )
public void setUsername( final String userName )
{
this.userName = userName;
this.username = userName;
}
}

View File

@ -227,7 +227,7 @@ public class DefaultWagonManager
// We have authentication we have been asked to deal with.
//
AuthenticationInfo ai = new AuthenticationInfo();
ai.setUserName( repository.getAuthentication().getUserName() );
ai.setUserName( repository.getAuthentication().getUsername() );
ai.setPassword( repository.getAuthentication().getPassword() );
wagon.connect( new Repository( repository.getId(), repository.getUrl() ), ai );

View File

@ -1,36 +0,0 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional information regarding
* copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License. You may obtain a
* copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
package org.apache.maven.repository;
import org.codehaus.plexus.PlexusTestCase;
/**
*
*
* @author Oleg Gusakov
* @version $Id$
*
*/
public class LegacyMavenRepositorySystemTest
extends PlexusTestCase
{
public void testLookup()
throws Exception
{
// Yes I'm relying on the integration tests, but I'm really hoping this just goes away shortly.
//lookup( RepositorySystem.class, "default" );
}
}