|
a |
|
b/src/test/java/net/timbusproject/extractors/TavernaExtractorOSGiTester.java |
|
|
1 |
package net.timbusproject.extractors;
|
|
|
2 |
|
|
|
3 |
import net.timbusproject.extractors.core.Endpoint;
|
|
|
4 |
import net.timbusproject.extractors.core.IExtractor;
|
|
|
5 |
import net.timbusproject.extractors.modules.tavernaextractor.TavernaExtractorOSGi;
|
|
|
6 |
import org.junit.Test;
|
|
|
7 |
|
|
|
8 |
/**
|
|
|
9 |
* Created by marco unterberger on 17.10.2014.
|
|
|
10 |
* munterberger@sba-research.org
|
|
|
11 |
*/
|
|
|
12 |
public class TavernaExtractorOSGiTester {
|
|
|
13 |
|
|
|
14 |
@Test
|
|
|
15 |
public void test() throws Exception{
|
|
|
16 |
|
|
|
17 |
IExtractor extractor = new TavernaExtractorOSGi();
|
|
|
18 |
Endpoint endpoint = new Endpoint();
|
|
|
19 |
|
|
|
20 |
endpoint.setProperty("address","172.16.1.2");
|
|
|
21 |
endpoint.setProperty("user","timbus");
|
|
|
22 |
endpoint.setProperty("password","timbus");
|
|
|
23 |
endpoint.setProperty("port","22");
|
|
|
24 |
endpoint.setProperty("tavernaHome","/home/timbus/.taverna-2.4.0");
|
|
|
25 |
endpoint.setProperty("archimateOutputPath","/home/timbus/Documents/imagemagick.contextmodel.archimate");
|
|
|
26 |
endpoint.setProperty("inputFileName","/home/timbus/Documents/imagemagick_wf.t2flow");
|
|
|
27 |
|
|
|
28 |
extractor.extract(endpoint, true);
|
|
|
29 |
|
|
|
30 |
}
|
|
|
31 |
|
|
|
32 |
}
|