Examples of ProxySettings


Examples of uk.gov.nationalarchives.droid.core.interfaces.signature.ProxySettings

        sigFileDir = new File("tmp_sig_files");
        FileUtils.deleteQuietly(sigFileDir);
        sigFileDir.mkdir();
        new File("tmp_sig_files/DROID_SignatureFile_V26.xml").delete();
        importer.setEndpointUrl(ENDPOINT_URL);
        ProxySettings proxySettings = new ProxySettings();
        proxySettings.setEnabled(false);
        importer.onProxyChange(proxySettings);
    }
View Full Code Here

Examples of uk.gov.nationalarchives.droid.core.interfaces.signature.ProxySettings

    //TODO this only works inside of TNA! We need to mock out the proxy call!
    @Ignore
    @Test
    public void testGetSigFileFromRemoteWebServiceSavesFileLocallyViaProxy() throws SignatureServiceException {
       
        ProxySettings proxySettings = new ProxySettings();
       
        proxySettings.setProxyHost(PROXY_HOST);
        proxySettings.setProxyPort(PROXY_PORT);
        proxySettings.setEnabled(true);
       
        importer.onProxyChange(proxySettings);
       
        File[] sigFiles = sigFileDir.listFiles();
        assertEquals(0, sigFiles.length);
View Full Code Here

Examples of uk.gov.nationalarchives.droid.core.interfaces.signature.ProxySettings

    //TODO this only works inside of TNA! We need to mock out the proxy call!
    @Ignore
    @Test
    public void testGetLatestSigFileVersionViaProxy() {
       
        ProxySettings proxySettings = new ProxySettings();
       
        proxySettings.setProxyHost(PROXY_HOST);
        proxySettings.setProxyPort(PROXY_PORT);
        proxySettings.setEnabled(true);
       
        importer.onProxyChange(proxySettings);
        SignatureFileInfo info = importer.getLatestVersion(1);
       
//        assertEquals(CURRENT_VER, info.getVersion());
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.