Commit d690ca3a authored by Georg Vinogradov's avatar Georg Vinogradov
Browse files

Add equality test for generated files

parent 774f9a36
Pipeline #155368 passed with stage
in 45 seconds
......@@ -6,7 +6,11 @@ import de.monticore.lang.tagging._symboltable.TaggingResolver;
import de.monticore.lang.embeddedmontiarc.tagging.middleware.mqtt.MqttConnectionSymbol;
import static org.junit.Assert.assertNotNull;
import java.util.List;
import org.junit.Test;
public class PrettyPrintGenerationTest extends AbstractSymtabTest {
......@@ -29,7 +33,9 @@ public class PrettyPrintGenerationTest extends AbstractSymtabTest {
// Connect component's ports to topics
componentInstanceSymbol.getPortInstance("portA").orElse(null).setMiddlewareSymbol(new MqttConnectionSymbol("/clock"));
List<File> files = generatorMqtt.generateMqttAdapter(componentInstanceSymbol);
testFilesAreEqual(files, "echo/");
Component name: tests.a.compA
portA : incoming (mqtt, topic: /clock)
portB : incoming (unknown symbol)
portC : outgoing (unknown symbol)
portD : outgoing (unknown symbol)
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