@Test public void testGetHost() { RemoteRepository.Builder builder = new RemoteRepository.Builder( "id", "type", "" ); RemoteRepository repo = builder.build(); assertEquals( "", repo.getHost() ); repo = builder.setUrl( "http: assertEquals( "localhost", repo.getHost() ); repo = builder.setUrl( "http: assertEquals( "localhost", repo.getHost() ); repo = builder.setUrl( "http: assertEquals( "localhost", repo.getHost() ); repo = builder.setUrl( "http: assertEquals( "127.0.0.1", repo.getHost() ); repo = builder.setUrl( "http: assertEquals( "127.0.0.1", repo.getHost() ); repo = builder.setUrl( "http: assertEquals( "localhost", repo.getHost() ); repo = builder.setUrl( "http: assertEquals( "localhost", repo.getHost() ); repo = builder.setUrl( "http: assertEquals( "localhost", repo.getHost() ); }
public String getHost() { return host; }
RemoteRepository implements ArtifactRepository { public String getHost() { return host; } }
RemoteRepository implements ArtifactRepository { public String getHost() { return host; } RemoteRepository( Builder builder ); }
RemoteRepository implements ArtifactRepository { public String getHost() { return host; } RemoteRepository( Builder builder ); String getId(); String getContentType(); String getUrl(); String getProtocol(); String getHost(); RepositoryPolicy getPolicy( boolean snapshot ); Proxy getProxy(); Authentication getAuthentication(); List<RemoteRepository> getMirroredRepositories(); boolean isRepositoryManager(); @Override String toString(); @Override boolean equals( Object obj ); @Override int hashCode(); }
RemoteRepository implements ArtifactRepository { public String getHost() { return host; } RemoteRepository( Builder builder ); String getId(); String getContentType(); String getUrl(); String getProtocol(); String getHost(); RepositoryPolicy getPolicy( boolean snapshot ); Proxy getProxy(); Authentication getAuthentication(); List<RemoteRepository> getMirroredRepositories(); boolean isRepositoryManager(); @Override String toString(); @Override boolean equals( Object obj ); @Override int hashCode();  }