~pbeaman/akiban-persistit/buffer-pool-warmup-sorted

« back to all changes in this revision

Viewing changes to src/test/java/com/persistit/stress/unit/MD5Sum.java

Merge from eclipse_canonical_format

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
import com.persistit.Key;
23
23
import com.persistit.Volume;
24
24
import com.persistit.stress.AbstractStressTest;
25
 
import com.persistit.util.Util;
26
25
 
27
26
public class MD5Sum extends AbstractStressTest {
28
27
    /**
35
34
 
36
35
    private MessageDigest md;
37
36
 
38
 
    public MD5Sum(String argsString) {
 
37
    public MD5Sum(final String argsString) {
39
38
        super(argsString);
40
39
        try {
41
40
            md = MessageDigest.getInstance("MD5");
42
 
        } catch (Exception e) {
 
41
        } catch (final Exception e) {
43
42
            e.printStackTrace();
44
43
            throw new RuntimeException(e);
45
44
        }
46
45
    }
47
46
 
48
 
 
49
47
    @Override
50
48
    public void executeTest() throws Exception {
51
49
        final Volume volume = getPersistit().getVolume("persistit");
66
64
        md.update(bytes, 0, length);
67
65
    }
68
66
 
69
 
 
70
67
}