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

« back to all changes in this revision

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

Merge from eclipse_canonical_format

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
import com.persistit.Exchange;
21
21
import com.persistit.Key;
22
22
import com.persistit.Value;
23
 
import com.persistit.stress.TestResult;
24
23
import com.persistit.util.ArgParser;
25
24
 
26
25
public class Stress9 extends StressBase {
37
36
 
38
37
    ArrayList _testValue = new ArrayList();
39
38
 
40
 
    public Stress9(String argsString) {
 
39
    public Stress9(final String argsString) {
41
40
        super(argsString);
42
41
    }
 
42
 
43
43
    @Override
44
44
    public void setUp() throws Exception {
45
45
        super.setUp();
134
134
 
135
135
                        final int size2 = value2.getEncodedSize();
136
136
                        if (size2 != size1) {
137
 
                            fail("Value is size " + size2 + ", should be " + size1 + " key="
138
 
                                    + _ex.getKey());
 
137
                            fail("Value is size " + size2 + ", should be " + size1 + " key=" + _ex.getKey());
139
138
                        }
140
139
                    } catch (final Exception e) {
141
140
                        handleThrowable(e);
182
181
                    }
183
182
                }
184
183
                if (count1 != count2 && !isStopped()) {
185
 
                    fail("Traverse count is " + count1 + " but should be " + count2
186
 
                            + " on repetition=" + _repeat + " in thread=" + _threadIndex);
 
184
                    fail("Traverse count is " + count1 + " but should be " + count2 + " on repetition=" + _repeat
 
185
                            + " in thread=" + _threadIndex);
187
186
                    break;
188
187
                }
189
188
            }