source: src/test/java/genius/ProtocolsInstallerTest.java@ 209

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

Initial import : Genius 9.0.0

File size: 787 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 ProtocolsInstallerTest {
11
12 private final static File protocolrepo = new File("protocolrepository.xml");
13
14 private final static File multiprotocolrepo = new File("multipartyprotocolrepository.xml");
15
16 @Test
17 public void testRun() throws IOException {
18 clean();
19 ProtocolsInstaller.run();
20 assertTrue("protocolrepository was not installed properly", protocolrepo.exists());
21 assertTrue("partyrepository was not installed properly", multiprotocolrepo.exists());
22 clean();
23 }
24
25 private void clean() {
26 if (protocolrepo.exists()) {
27 protocolrepo.delete();
28 }
29 if (multiprotocolrepo.exists()) {
30 multiprotocolrepo.delete();
31 }
32 }
33}
Note: See TracBrowser for help on using the repository browser.