Download this file

TestBackup.java    38 lines (29 with data), 685 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import riskReporter.server.backup.BackupManager;
/**
* Created to Project REPOX
* User: Edmundo
* Date: 05-11-2012
* Time: 14:30
*/
public class TestBackup {
@Before
public void setUp() {
}
@After
public void tearDown(){
}
@Test
public void testSaveBackup() {
BackupManager backupManager = BackupManager.getINSTANCE();
backupManager.saveBackup();
}
@Test
public void testSaveManyBackups() {
BackupManager backupManager = BackupManager.getINSTANCE();
for(int i=0; i< 27 ; i++)
backupManager.saveBackup();
}
}