source: src/test/java/genius/AgentsInstallerTest.java@ 127

Last change on this file since 127 was 1, checked in by Wouter Pasman, 6 years ago

Initial import : Genius 9.0.0

File size: 924 bytes
Line 
1package genius;
2
3import static org.junit.Assert.assertTrue;
4
5import java.io.File;
6import java.io.IOException;
7
8import org.junit.Test;
9
10public class AgentsInstallerTest {
11
12 private final static File boapartyrepo = new File("boapartyrepo.xml");
13 private final static File boarepo = new File("boarepository.xml");
14 private final static File partyrepo = new File("partyrepository.xml");
15
16 @Test
17 public void testRun() throws IOException {
18 clean();
19 AgentsInstaller.run();
20 assertTrue("boarepository was not installed properly", boarepo.exists());
21 assertTrue("boapartyrepository was not installed properly", boapartyrepo.exists());
22 assertTrue("partyrepository was not installed properly", partyrepo.exists());
23 clean();
24 }
25
26 private void clean() {
27 if (boarepo.exists()) {
28 boarepo.delete();
29 }
30 if (boapartyrepo.exists()) {
31 boapartyrepo.delete();
32 }
33 if (partyrepo.exists()) {
34 partyrepo.delete();
35 }
36 }
37}
Note: See TracBrowser for help on using the repository browser.