@Test public void testHandle_Accept() throws Exception { policy.tolerateFailure = true; ChecksumValidator validator = newValidator( SHA1 ); assertEquals( true, validator.handle( new ChecksumFailureException( "accept" ) ) ); policy.assertCallbacks( "fail(accept)" ); }
public boolean handle( ChecksumFailureException exception ) { return checksumPolicy.onTransferChecksumFailure( exception ); }
ChecksumValidator { public boolean handle( ChecksumFailureException exception ) { return checksumPolicy.onTransferChecksumFailure( exception ); } }
ChecksumValidator { public boolean handle( ChecksumFailureException exception ) { return checksumPolicy.onTransferChecksumFailure( exception ); } ChecksumValidator( Logger logger, File dataFile, FileProcessor fileProcessor,
                              ChecksumFetcher checksumFetcher, ChecksumPolicy checksumPolicy,
                              Collection<Checksum> checksums ); }
ChecksumValidator { public boolean handle( ChecksumFailureException exception ) { return checksumPolicy.onTransferChecksumFailure( exception ); } ChecksumValidator( Logger logger, File dataFile, FileProcessor fileProcessor,
                              ChecksumFetcher checksumFetcher, ChecksumPolicy checksumPolicy,
                              Collection<Checksum> checksums ); ChecksumCalculator newChecksumCalculator( File targetFile ); void validate( Map<String, ?> actualChecksums, Map<String, ?> inlinedChecksums ); void retry(); boolean handle( ChecksumFailureException exception ); void commit(); void close(); }
ChecksumValidator { public boolean handle( ChecksumFailureException exception ) { return checksumPolicy.onTransferChecksumFailure( exception ); } ChecksumValidator( Logger logger, File dataFile, FileProcessor fileProcessor,
                              ChecksumFetcher checksumFetcher, ChecksumPolicy checksumPolicy,
                              Collection<Checksum> checksums ); ChecksumCalculator newChecksumCalculator( File targetFile ); void validate( Map<String, ?> actualChecksums, Map<String, ?> inlinedChecksums ); void retry(); boolean handle( ChecksumFailureException exception ); void commit(); void close();  }