Commit 89121765 authored by Markus Georg Bendel's avatar Markus Georg Bendel
Browse files

Use generate method in SomeIPGenImpl

parent e4e095c4
Pipeline #166947 failed with stages
in 11 minutes and 38 seconds
......@@ -22,11 +22,11 @@ public class SomeIPGenImpl implements GeneratorImpl {
this.generatorSomeIP = generatorSomeIP;
}
//@Override
//public List<File> generate(EMAComponentInstanceSymbol componentInstanceSymbol, TaggingResolver taggingResolver) throws IOException {
// generatorSomeIP.setGenerationTargetPath(generationTargetPath);
// return generatorSomeIP.generateFiles(componentInstanceSymbol, taggingResolver);
//}
@Override
public List<File> generate(EMAComponentInstanceSymbol componentInstanceSymbol, TaggingResolver taggingResolver) throws IOException {
generatorSomeIP.setGenerationTargetPath(generationTargetPath);
return generatorSomeIP.generateSomeIPAdapter(componentInstanceSymbol);
}
@Override
public void setGenerationTargetPath(String path) {
......
......@@ -29,11 +29,17 @@ public class SomeIPGenerationTest extends AbstractSymtabTest {
assertNotNull(componentInstanceSymbol);
GeneratorSomeIP generatorSomeIP = new GeneratorSomeIP();
generatorSomeIP.setGenerationTargetPath(OUT_BASE);
componentInstanceSymbol.getPortInstance("in1").orElse(null).setMiddlewareSymbol(new SomeIPConnectionSymbol(1,2,3));
componentInstanceSymbol.getPortInstance("in2").orElse(null).setMiddlewareSymbol(new SomeIPConnectionSymbol(4,5,6));
componentInstanceSymbol.getPortInstance("out1").orElse(null).setMiddlewareSymbol(new SomeIPConnectionSymbol(7,8,9));
//SomeIPGenImpl someIPGenImpl = new SomeIPGenImpl();
//someIPGenImpl.setGeneratorSomeIP(generatorSomeIP);
//someIPGenImpl.setGenerationTargetPath(OUT_BASE);
//someIPGenImpl.generate(componentInstanceSymbol, taggingResolver);
DistributedTargetGenerator distributedTargetGenerator = new DistributedTargetGenerator();
distributedTargetGenerator.setGenerationTargetPath(OUT_BASE + "addComp/src");
distributedTargetGenerator.add(new CPPGenImpl(TEST_PATH),"cpp");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment