Package uk.gov.nationalarchives.droid.core.interfaces.signature

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


                        FilenameUtils.getBaseName(info.getFile().getName()));
                try {
                    config.getProperties().save();
                } catch (ConfigurationException e) {
                    log.error(e);
                    throw new SignatureManagerException(e);
                }
            }
            return info;
        } catch (SignatureServiceException e) {
            throw new SignatureManagerException(e);
        }
    }
View Full Code Here


    @Test
    public void testCheckSignatureUpdateWhenConnectionFails() throws SignatureManagerException {
       
        Throwable cause = new UnknownHostException("proxy");
       
        SignatureManagerException e = new SignatureManagerException(new RuntimeException("Failed", cause));
        when(signatureManager.getLatestSignatureFiles()).thenThrow(e);
       
        try {
            command.execute();
            fail("Expected CommandExecutionEception");
View Full Code Here

    @Test
    public void testDownloadSignatureUpdateWhenConnectionFails() throws SignatureManagerException {
       
        Throwable cause = new UnknownHostException("proxy");
       
        SignatureManagerException updateException = new SignatureManagerException(
                new RuntimeException("Failed", cause));
        when(signatureManager.downloadLatest(SignatureType.BINARY)).thenThrow(updateException);
        when(signatureManager.downloadLatest(SignatureType.CONTAINER)).thenThrow(updateException);
        try {
            command.execute();
View Full Code Here

TOP

Related Classes of uk.gov.nationalarchives.droid.core.interfaces.signature.SignatureManagerException

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.