|
@@ -276,3 +276,67 @@ class TestModelverseCore(unittest.TestCase):
|
|
|
"Ready for command...",
|
|
|
],
|
|
|
mode))
|
|
|
+
|
|
|
+ def test_po_transform_add_MT_instance(self):
|
|
|
+ self.transform_add_MT_instance("PO")
|
|
|
+
|
|
|
+ def transform_add_MT_instance(self, mode):
|
|
|
+ self.assertTrue(run_file(all_files,
|
|
|
+ [ "root",
|
|
|
+ "model_add",
|
|
|
+ "SimpleClassDiagrams",
|
|
|
+ "PetriNets",
|
|
|
+ ] + get_raw_model_constructor(open("integration/code/petrinets.mvc", "r").read()) + [
|
|
|
+ "model_list_full",
|
|
|
+ "transformation_add_MT_language",
|
|
|
+ "PetriNets",
|
|
|
+ "",
|
|
|
+ "PetriNets_RAM",
|
|
|
+ "model_list_full",
|
|
|
+ "transformation_add_MT",
|
|
|
+ "PetriNets_RAM",
|
|
|
+ "PetriNets",
|
|
|
+ ],
|
|
|
+ [ "Desired username for admin user?",
|
|
|
+ "Welcome to the Model Management Interface v2.0!",
|
|
|
+ "Use the 'help' command for a list of possible commands",
|
|
|
+ "Ready for command...",
|
|
|
+ "Creating new model!",
|
|
|
+ "Model type?",
|
|
|
+ "Model name?",
|
|
|
+ "Waiting for model constructors...",
|
|
|
+ "Model upload success!",
|
|
|
+ "Ready for command...",
|
|
|
+ set([" 221 root admin 673 SimpleClassDiagrams : SimpleClassDiagrams",
|
|
|
+ " 221 root admin 86 CoreFormalism : SimpleClassDiagrams",
|
|
|
+ " 200 root nobody 14 PetriNets : SimpleClassDiagrams",
|
|
|
+ " 200 root admin 53 core : CoreFormalism"]),
|
|
|
+ "Ready for command...",
|
|
|
+ "Formalisms to include (terminate with empty string)?",
|
|
|
+ "Name of the RAMified transformation metamodel?",
|
|
|
+ "Ready for command...",
|
|
|
+ set([" 221 root admin 673 SimpleClassDiagrams : SimpleClassDiagrams",
|
|
|
+ " 221 root admin 86 CoreFormalism : SimpleClassDiagrams",
|
|
|
+ " 200 root nobody 14 PetriNets : SimpleClassDiagrams",
|
|
|
+ " 200 root nobody 14 __merged_PetriNets_RAM : SimpleClassDiagrams",
|
|
|
+ " 200 root nobody 328 PetriNets_RAM : SimpleClassDiagrams",
|
|
|
+ " 200 root admin 76 core : CoreFormalism"]),
|
|
|
+ "Ready for command...",
|
|
|
+ set([" 221 root admin 673 SimpleClassDiagrams : SimpleClassDiagrams",
|
|
|
+ " 221 root admin 86 CoreFormalism : SimpleClassDiagrams",
|
|
|
+ " 200 root nobody 14 PetriNets : SimpleClassDiagrams",
|
|
|
+ " 200 root nobody 14 __merged_PetriNets_RAM : SimpleClassDiagrams",
|
|
|
+ " 200 root nobody 328 PetriNets_RAM : SimpleClassDiagrams",
|
|
|
+ " 200 root admin 76 core : CoreFormalism"]),
|
|
|
+ "Ready for command...",
|
|
|
+ "Merged metamodel to RAMify again?",
|
|
|
+ "Ready for command...",
|
|
|
+ set([" 221 root admin 673 SimpleClassDiagrams : SimpleClassDiagrams",
|
|
|
+ " 221 root admin 86 CoreFormalism : SimpleClassDiagrams",
|
|
|
+ " 200 root nobody 14 PetriNets : SimpleClassDiagrams",
|
|
|
+ " 200 root nobody 14 __merged_PetriNets_RAM : SimpleClassDiagrams",
|
|
|
+ " 200 root nobody 328 PetriNets_RAM : SimpleClassDiagrams",
|
|
|
+ " 200 root admin 76 core : CoreFormalism"]),
|
|
|
+ "Ready for command...",
|
|
|
+ ],
|
|
|
+ mode))
|