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

« back to all changes in this revision

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

Merge from eclipse_canonical_format

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
    @Test
33
33
    public void testLotsOfTrees() throws Exception {
34
34
        Volume volume = _persistit.getVolume("persistit");
35
 
        Transaction txn = _persistit.getTransaction();
 
35
        final Transaction txn = _persistit.getTransaction();
36
36
        assertEquals(1, volume.getStructure().directoryExchange().getTree().getRootPageAddr());
37
37
        for (int counter = 0; counter < COUNT; counter++) {
38
38
            txn.begin();
53
53
            txn.end();
54
54
        }
55
55
 
56
 
        Properties properties = _persistit.getProperties();
 
56
        final Properties properties = _persistit.getProperties();
57
57
        _persistit.getJournalManager().flush();
58
58
        _persistit.crash();
59
59
        _persistit = new Persistit();
62
62
        volume = _persistit.getVolume("persistit");
63
63
        assertTrue(1 != volume.getStructure().directoryExchange().getTree().getRootPageAddr());
64
64
 
65
 
        String[] treeNames = volume.getTreeNames();
 
65
        final String[] treeNames = volume.getTreeNames();
66
66
        for (final String t : treeNames) {
67
67
            assertTrue(!t.startsWith("TreeTest1"));
68
68
        }
70
70
 
71
71
    @Test
72
72
    public void testSameTreeName() throws Exception {
73
 
        Transaction txn = _persistit.getTransaction();
 
73
        final Transaction txn = _persistit.getTransaction();
74
74
        for (int counter = 0; counter < 100; counter++) {
75
75
            txn.begin();
76
76
            try {