Package org.apache.archiva.admin.model.beans

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


    @Test
    public void findProxyConnector()
        throws Exception
    {
        ProxyConnector proxyConnector = proxyConnectorAdmin.getProxyConnector( "internal", "central" );
        assertNotNull( proxyConnector );
    }
View Full Code Here


    @Test
    public void updateProxyConnector()
        throws Exception
    {
        mockAuditListener.clearEvents();
        ProxyConnector proxyConnector = proxyConnectorAdmin.getProxyConnector( "internal", "central" );
        assertNotNull( proxyConnector );
        proxyConnector.setDisabled( false );
        proxyConnectorAdmin.updateProxyConnector( proxyConnector, getFakeAuditInformation() );
        proxyConnector = proxyConnectorAdmin.getProxyConnector( "internal", "central" );
        assertFalse( proxyConnector.isDisabled() );

        proxyConnector.setDisabled( true );
        proxyConnectorAdmin.updateProxyConnector( proxyConnector, getFakeAuditInformation() );
        proxyConnector = proxyConnectorAdmin.getProxyConnector( "internal", "central" );
        assertTrue( proxyConnector.isDisabled() );

        proxyConnector.setOrder( 4 );
        proxyConnectorAdmin.updateProxyConnector( proxyConnector, getFakeAuditInformation() );
        proxyConnector = proxyConnectorAdmin.getProxyConnector( "internal", "central" );
        assertEquals( 4, proxyConnector.getOrder() );
        mockAuditListener.clearEvents();

    }
View Full Code Here

    @Test
    public void addProxyConnectorRule()
        throws Exception
    {
        ProxyConnector proxyConnector = new ProxyConnector();
        proxyConnector.setSourceRepoId( "snapshots" );
        proxyConnector.setTargetRepoId( "central" );

        ProxyConnectorRuleService service = getProxyConnectorRuleService( authorizationHeader );

        ProxyConnectorRule rule = null;
        try
View Full Code Here

    }

    public Boolean removeProxyConnector( String sourceRepoId, String targetRepoId )
        throws ArchivaRestServiceException
    {
        ProxyConnector proxyConnector = getProxyConnector( sourceRepoId, targetRepoId );
        if ( proxyConnector == null )
        {
            throw new ArchivaRestServiceException(
                "proxyConnector with sourceRepoId:" + sourceRepoId + " and targetRepoId:" + targetRepoId
                    + " not exists", null );
View Full Code Here

TOP

Related Classes of org.apache.archiva.admin.model.beans.ProxyConnector

Copyright © 2018 www.massapicom. 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.