Skip to content
Snippets Groups Projects
Commit 25e9fc91 authored by Minh Hiep Pham's avatar Minh Hiep Pham :speech_balloon:
Browse files

Created test to test equalSpec method (only for hw nodes and hw links of tmlArchitecture)

parent 800133b8
No related branches found
No related tags found
1 merge request!239Created equalSpec methods to compare TML
...@@ -51,7 +51,6 @@ import static org.junit.Assert.*; ...@@ -51,7 +51,6 @@ import static org.junit.Assert.*;
/** /**
* #issue 186
* Testing the clone function on architecture * Testing the clone function on architecture
* author : Minh Hiep * author : Minh Hiep
* update test : 18/10/2019 * update test : 18/10/2019
...@@ -74,11 +73,8 @@ public class TDiagramPanelCloneArchitectureTest extends AbstractUITest { ...@@ -74,11 +73,8 @@ public class TDiagramPanelCloneArchitectureTest extends AbstractUITest {
static TGComponent Memory_Cl; static TGComponent Memory_Cl;
static TGComponent mapChannel;
final static String EXPECTED_FILE_MODEL = getBaseResourcesDir() + "/ui/diagram2tml/expected/Expected_CloneArchitecture.xml"; final static String EXPECTED_FILE_MODEL = getBaseResourcesDir() + "/ui/diagram2tml/expected/Expected_CloneArchitecture.xml";
@BeforeClass @BeforeClass
public static void setUpBeforeClass() throws Exception { public static void setUpBeforeClass() throws Exception {
RESOURCES_DIR = getBaseResourcesDir() + "/ui/diagram2tml/input/CloneCompositeComponentTest.xml"; RESOURCES_DIR = getBaseResourcesDir() + "/ui/diagram2tml/input/CloneCompositeComponentTest.xml";
...@@ -129,9 +125,6 @@ public class TDiagramPanelCloneArchitectureTest extends AbstractUITest { ...@@ -129,9 +125,6 @@ public class TDiagramPanelCloneArchitectureTest extends AbstractUITest {
assertNotNull(architecture_clone); assertNotNull(architecture_clone);
for (TGComponent tgc : architecture_clone.getAllComponentList()) { for (TGComponent tgc : architecture_clone.getAllComponentList()) {
if (tgc.getValue().equals("Application::PrimitiveComp1")) {
mapChannel = tgc;
}
if (tgc.getName().equals("CPU1")) { if (tgc.getName().equals("CPU1")) {
CPU_Cl = tgc; CPU_Cl = tgc;
......
...@@ -79,6 +79,9 @@ public class TDiagramPanelCloneTest extends AbstractUITest { ...@@ -79,6 +79,9 @@ public class TDiagramPanelCloneTest extends AbstractUITest {
public void testCloneCompositeComponentWithNullFather() throws Exception{ public void testCloneCompositeComponentWithNullFather() throws Exception{
CompareTML compTML = new CompareTML(); CompareTML compTML = new CompareTML();
diagramPanel.cloneComponent(tgComponent1); diagramPanel.cloneComponent(tgComponent1);
// diagramPanel.cloneComponent(tgComponent2);
//diagramPanel.cloneComponent(tgComponent3);
//diagramPanel.cloneComponent(tgComponent4);
mainGUI.checkModelingSyntax(true); mainGUI.checkModelingSyntax(true);
mainGUI.generateTMLTxt(); mainGUI.generateTMLTxt();
File f1 = new File(EXPECTED_FILE1); File f1 = new File(EXPECTED_FILE1);
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment