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:
787 bytes
|
Line | |
---|
1 | package genius;
|
---|
2 |
|
---|
3 | import static org.junit.Assert.assertTrue;
|
---|
4 |
|
---|
5 | import java.io.File;
|
---|
6 | import java.io.IOException;
|
---|
7 |
|
---|
8 | import org.junit.Test;
|
---|
9 |
|
---|
10 | public 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.