Commit cb129f13 authored by Alexander David Hellwig's avatar Alexander David Hellwig
Browse files

Fix: AbstractCoCoTest.java and SymtabTest.java

parent 2dc48b45
Pipeline #95741 failed with stages
in 74 minutes and 8 seconds
......@@ -20,7 +20,7 @@
*/
package de.monticore.lang.monticar.emadl;
import de.monticore.lang.embeddedmontiarc.embeddedmontiarc._symboltable.ComponentSymbol;
import de.monticore.lang.embeddedmontiarc.embeddedmontiarc._symboltable.cncModel.EMAComponentSymbol;
import de.monticore.lang.embeddedmontiarc.embeddedmontiarc._symboltable.instanceStructure.EMAComponentInstanceSymbol;
import de.monticore.lang.monticar.emadl._parser.EMADLParser;
import de.monticore.symboltable.Scope;
......@@ -50,7 +50,7 @@ public class SymtabTest extends AbstractSymtabTest {
@Test
public void testAlexnet(){
Scope symTab = createSymTab("src/test/resources/models");
ComponentSymbol a = symTab.<ComponentSymbol>resolve("ResNet34", ComponentSymbol.KIND).orElse(null);
EMAComponentSymbol a = symTab.<EMAComponentSymbol>resolve("ResNet34", EMAComponentSymbol.KIND).orElse(null);
EMAComponentInstanceSymbol c = symTab.<EMAComponentInstanceSymbol>resolve("resNet34", EMAComponentInstanceSymbol.KIND).orElse(null);
assertNotNull(a);
}
......
......@@ -20,7 +20,7 @@
*/
package de.monticore.lang.monticar.emadl.cocos;
import de.monticore.lang.embeddedmontiarc.embeddedmontiarc._symboltable.ComponentSymbol;
import de.monticore.lang.embeddedmontiarc.embeddedmontiarc._symboltable.cncModel.EMAComponentSymbol;
import de.monticore.lang.embeddedmontiarc.embeddedmontiarc._symboltable.instanceStructure.EMAComponentInstanceSymbol;
import de.monticore.lang.monticar.emadl.AbstractSymtabTest;
import de.monticore.lang.monticar.emadl._cocos.EMADLCocos;
......@@ -47,8 +47,8 @@ public class AbstractCoCoTest extends AbstractSymtabTest {
protected static EMAComponentInstanceSymbol getComponentInstance(String modelPath, String model) {
Scope symTab = createSymTab(MODEL_PATH + modelPath);
ComponentSymbol comp = symTab.<ComponentSymbol> resolve(
model, ComponentSymbol.KIND).orElse(null);
EMAComponentSymbol comp = symTab.<EMAComponentSymbol> resolve(
model, EMAComponentSymbol.KIND).orElse(null);
assertNotNull("Could not resolve model " + model, comp);
return (EMAComponentInstanceSymbol) comp.getEnclosingScope()
......
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