@Test public void testOnTransferChecksumFailure() { assertTrue( policy.onTransferChecksumFailure( exception ) ); }
public boolean onTransferChecksumFailure( ChecksumFailureException exception ) { String msg = "Could not validate integrity of download from " + resource.getRepositoryUrl() + resource.getResourceName(); if ( logger.isDebugEnabled() ) { logger.warn( msg, exception ); } else { logger.warn( msg + ": " + exception.getMessage() ); } return true; }
WarnChecksumPolicy extends AbstractChecksumPolicy { public boolean onTransferChecksumFailure( ChecksumFailureException exception ) { String msg = "Could not validate integrity of download from " + resource.getRepositoryUrl() + resource.getResourceName(); if ( logger.isDebugEnabled() ) { logger.warn( msg, exception ); } else { logger.warn( msg + ": " + exception.getMessage() ); } return true; } }
WarnChecksumPolicy extends AbstractChecksumPolicy { public boolean onTransferChecksumFailure( ChecksumFailureException exception ) { String msg = "Could not validate integrity of download from " + resource.getRepositoryUrl() + resource.getResourceName(); if ( logger.isDebugEnabled() ) { logger.warn( msg, exception ); } else { logger.warn( msg + ": " + exception.getMessage() ); } return true; } WarnChecksumPolicy( LoggerFactory loggerFactory, TransferResource resource ); }
WarnChecksumPolicy extends AbstractChecksumPolicy { public boolean onTransferChecksumFailure( ChecksumFailureException exception ) { String msg = "Could not validate integrity of download from " + resource.getRepositoryUrl() + resource.getResourceName(); if ( logger.isDebugEnabled() ) { logger.warn( msg, exception ); } else { logger.warn( msg + ": " + exception.getMessage() ); } return true; } WarnChecksumPolicy( LoggerFactory loggerFactory, TransferResource resource ); boolean onTransferChecksumFailure( ChecksumFailureException exception ); }
WarnChecksumPolicy extends AbstractChecksumPolicy { public boolean onTransferChecksumFailure( ChecksumFailureException exception ) { String msg = "Could not validate integrity of download from " + resource.getRepositoryUrl() + resource.getResourceName(); if ( logger.isDebugEnabled() ) { logger.warn( msg, exception ); } else { logger.warn( msg + ": " + exception.getMessage() ); } return true; } WarnChecksumPolicy( LoggerFactory loggerFactory, TransferResource resource ); boolean onTransferChecksumFailure( ChecksumFailureException exception );  }