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

« back to all changes in this revision

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

Merge from eclipse_canonical_format

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
package com.persistit.stress.unit;
17
17
 
18
18
import com.persistit.Key;
19
 
import com.persistit.stress.TestResult;
20
19
import com.persistit.util.ArgParser;
21
 
import com.persistit.util.Debug;
22
20
 
23
21
public class Stress10 extends StressBase {
24
22
 
31
29
    int _seed;
32
30
    String _opflags;
33
31
 
34
 
    public Stress10(String argsString) {
 
32
    public Stress10(final String argsString) {
35
33
        super(argsString);
36
34
    }
37
35
 
124
122
 
125
123
                        final int size2 = _exs.getValue().getEncodedSize();
126
124
                        if (size2 != size1) {
127
 
                            fail("Value is size " + size2 + ", should be " + size1 + " key="
128
 
                                    + _ex.getKey());
 
125
                            fail("Value is size " + size2 + ", should be " + size1 + " key=" + _ex.getKey());
129
126
                        }
130
127
                    } catch (final Exception e) {
131
128
                        handleThrowable(e);
155
152
                                size1 = _ex.getValue().getInt();
156
153
                            }
157
154
                            if (size2 != size1) {
158
 
                                fail("Value is size " + size2 + ", should be " + size1
159
 
                                        + " key=" + _ex.getKey());
 
155
                                fail("Value is size " + size2 + ", should be " + size1 + " key=" + _ex.getKey());
160
156
                            }
161
157
                            _exs.cut();
162
158
                        } catch (final Exception e) {