~pbeaman/akiban-persistit/fix-1157809-aioobe-on-append-key-segment

« back to all changes in this revision

Viewing changes to src/test/java/com/persistit/IOFailureTest.java

merge pbeaman: Adds infrastructure needed to support Spring Framework.

https://code.launchpad.net/~pbeaman/akiban-persistit/support-spring-framework/+merge/135208

Show diffs side-by-side

added added

removed removed

Lines of Context:
318
318
        channel1.close();
319
319
 
320
320
        _persistit = new Persistit();
 
321
        _persistit.setConfiguration(_config);
321
322
        try {
322
 
            _persistit.initialize(properties);
 
323
            _persistit.initialize();
323
324
            fail("Expected CorruptJournalException");
324
325
        } catch (final CorruptJournalException cje) {
325
326
            // expected
327
328
        file1.delete();
328
329
 
329
330
        _persistit = new Persistit();
 
331
        _persistit.setConfiguration(_config);
330
332
        try {
331
 
            _persistit.initialize(properties);
 
333
            _persistit.initialize();
332
334
            fail("Expected CorruptVolumeException");
333
335
        } catch (final CorruptVolumeException cve) {
334
336
            // expected
335
337
        }
 
338
        channel0.close();
 
339
        channel1.close();
336
340
    }
337
341
 
338
342
    @Test