~pbeaman/akiban-persistit/find-deadlock2

« back to all changes in this revision

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

Tweaks

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
    protected Properties getProperties(final boolean cleanup) {
39
39
        return UnitTestProperties.getBiggerProperties(cleanup);
40
40
    }
41
 
 
 
41
    
42
42
    @Test
43
43
    public void testSimpleBackup() throws Exception {
44
44
 
53
53
        final File file = File.createTempFile("backup", ".zip");
54
54
        file.deleteOnExit();
55
55
 
56
 
        final BackupTask backup1 = (BackupTask) CLI
57
 
                .parseTask(_persistit, "backup -z -c file=" + file.getAbsolutePath());
58
 
 
59
 
        backup1.setMessageWriter(writer);
60
 
        backup1.setup(1, "backup file=" + file.getAbsolutePath(), "cli", 0, 5);
61
 
        backup1.run();
 
56
        _persistit.getManagement().execute("backup -z -c file=" + file.getAbsolutePath());
62
57
 
63
58
        final Properties properties = _persistit.getProperties();
64
59
        _persistit.close();