Examples of NetworkProxy


Examples of org.apache.archiva.admin.model.beans.NetworkProxy

    public void addAndDeleteWithRemoteRepoLinked()
        throws Exception
    {
        mockAuditListener.clearEvents();
        int initialSize = networkProxyAdmin.getNetworkProxies().size();
        NetworkProxy networkProxy = getNetworkProxyTest( "foo" );

        networkProxyAdmin.addNetworkProxy( networkProxy, getFakeAuditInformation() );

        assertEquals( initialSize + 1, networkProxyAdmin.getNetworkProxies().size() );

        networkProxy = networkProxyAdmin.getNetworkProxy( "foo" );

        assertNotNull( networkProxy );

        RemoteRepository remoteRepository = getRemoteRepository();
        remoteRepository.setRemoteDownloadNetworkProxyId( networkProxy.getId() );

        remoteRepositoryAdmin.addRemoteRepository( remoteRepository, getFakeAuditInformation() );

        networkProxyAdmin.deleteNetworkProxy( "foo", getFakeAuditInformation() );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.