From 107f54edf94df18eba29e920b1f2242600afee60 Mon Sep 17 00:00:00 2001 From: Klaus Birken Date: Mon, 23 Sep 2024 09:15:41 +0200 Subject: [PATCH] Streamline import/export test code and add comments (issue #2522). --- .../generator/template/main@generator.mps | 214 ++++--- .../mpsutil/ecore/testing/runtime/main.mps | 605 +++++++++++++----- ...ecore.modelImportExport.testInstance2b.mps | 1 + .../models/testInstance1.mps | 1 + .../models/testInstance2.mps | 1 + .../models/testInstance3.mps | 1 + .../models/testInstance4.mps | 1 + .../models/testInstance5.mps | 1 + .../models/testInstance6.mps | 1 + 9 files changed, 549 insertions(+), 277 deletions(-) diff --git a/code/languages/com.mbeddr.mpsutil/languages/com.mbeddr.mpsutil.ecoreimporter.testing/generator/template/main@generator.mps b/code/languages/com.mbeddr.mpsutil/languages/com.mbeddr.mpsutil.ecoreimporter.testing/generator/template/main@generator.mps index c20e3732524..5552e9307d8 100644 --- a/code/languages/com.mbeddr.mpsutil/languages/com.mbeddr.mpsutil.ecoreimporter.testing/generator/template/main@generator.mps +++ b/code/languages/com.mbeddr.mpsutil/languages/com.mbeddr.mpsutil.ecoreimporter.testing/generator/template/main@generator.mps @@ -16,6 +16,9 @@ + + + @@ -87,6 +90,7 @@ + @@ -98,6 +102,9 @@ + + + @@ -317,135 +324,140 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + - - - - - + + + + + + + + + + + + + + + + + + + + - - + + - - - - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - + + + + + - - - - - - - + + + + + + + + + + + + + + + + + + - - - - - - - + + + + + + + diff --git a/code/languages/com.mbeddr.mpsutil/solutions/com.mbeddr.mpsutil.ecore.testing.runtime/models/com/mbeddr/mpsutil/ecore/testing/runtime/main.mps b/code/languages/com.mbeddr.mpsutil/solutions/com.mbeddr.mpsutil.ecore.testing.runtime/models/com/mbeddr/mpsutil/ecore/testing/runtime/main.mps index 019f6646d68..fc61d371682 100644 --- a/code/languages/com.mbeddr.mpsutil/solutions/com.mbeddr.mpsutil.ecore.testing.runtime/models/com/mbeddr/mpsutil/ecore/testing/runtime/main.mps +++ b/code/languages/com.mbeddr.mpsutil/solutions/com.mbeddr.mpsutil.ecore.testing.runtime/models/com/mbeddr/mpsutil/ecore/testing/runtime/main.mps @@ -6,6 +6,7 @@ + @@ -28,7 +29,6 @@ - @@ -70,7 +70,6 @@ - @@ -103,10 +102,10 @@ - + @@ -134,14 +133,11 @@ - - - - + @@ -187,6 +183,22 @@ + + + + + + + + + + + + + + + + @@ -252,9 +264,15 @@ + + + + + + @@ -272,8 +290,9 @@ - + + @@ -984,6 +1003,26 @@ + + + + + + + + + + + + + + + + + + + + @@ -1013,6 +1052,50 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1116,6 +1199,183 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1192,18 +1452,6 @@ - - - - - - - - - - - - @@ -1214,58 +1462,107 @@ - - - - - - - - - - - - - - - + + + + + - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - + + + + + + + + + + - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1285,12 +1582,7 @@ - - - - - - + @@ -1299,14 +1591,13 @@ - - - - - + - - + + + + + @@ -1317,16 +1608,29 @@ - - - - + + + + + + + + + + - + + + + + + + + @@ -1358,27 +1662,22 @@ - - - - + + + + - - - - - - - - - - + + + + + - + @@ -1399,102 +1698,56 @@ - - - - - - - - + + + + - - - - - - - - - - - - - - - - - + + - - + + - - + + - - + + - - + + - - + + - - + + - + - - - - - + + - - - - - - - - + + - - - - - - - - - - - - - - - - - + + + + + - - - - - - - - + + diff --git a/code/languages/com.mbeddr.mpsutil/tests/test.com.mbeddr.mpsutil.ecore.modelImportExport/models/test.com.mbeddr.mpsutil.ecore.modelImportExport.testInstance2b.mps b/code/languages/com.mbeddr.mpsutil/tests/test.com.mbeddr.mpsutil.ecore.modelImportExport/models/test.com.mbeddr.mpsutil.ecore.modelImportExport.testInstance2b.mps index 7e3ae128177..ebd69a947c3 100644 --- a/code/languages/com.mbeddr.mpsutil/tests/test.com.mbeddr.mpsutil.ecore.modelImportExport/models/test.com.mbeddr.mpsutil.ecore.modelImportExport.testInstance2b.mps +++ b/code/languages/com.mbeddr.mpsutil/tests/test.com.mbeddr.mpsutil.ecore.modelImportExport/models/test.com.mbeddr.mpsutil.ecore.modelImportExport.testInstance2b.mps @@ -1,6 +1,7 @@ + diff --git a/code/languages/com.mbeddr.mpsutil/tests/test.com.mbeddr.mpsutil.ecore.modelImportExport/models/testInstance1.mps b/code/languages/com.mbeddr.mpsutil/tests/test.com.mbeddr.mpsutil.ecore.modelImportExport/models/testInstance1.mps index 197e5c0a92e..83e52908b23 100644 --- a/code/languages/com.mbeddr.mpsutil/tests/test.com.mbeddr.mpsutil.ecore.modelImportExport/models/testInstance1.mps +++ b/code/languages/com.mbeddr.mpsutil/tests/test.com.mbeddr.mpsutil.ecore.modelImportExport/models/testInstance1.mps @@ -1,6 +1,7 @@ + diff --git a/code/languages/com.mbeddr.mpsutil/tests/test.com.mbeddr.mpsutil.ecore.modelImportExport/models/testInstance2.mps b/code/languages/com.mbeddr.mpsutil/tests/test.com.mbeddr.mpsutil.ecore.modelImportExport/models/testInstance2.mps index 53f009a7202..f585fd9bba6 100644 --- a/code/languages/com.mbeddr.mpsutil/tests/test.com.mbeddr.mpsutil.ecore.modelImportExport/models/testInstance2.mps +++ b/code/languages/com.mbeddr.mpsutil/tests/test.com.mbeddr.mpsutil.ecore.modelImportExport/models/testInstance2.mps @@ -1,6 +1,7 @@ + diff --git a/code/languages/com.mbeddr.mpsutil/tests/test.com.mbeddr.mpsutil.ecore.modelImportExport/models/testInstance3.mps b/code/languages/com.mbeddr.mpsutil/tests/test.com.mbeddr.mpsutil.ecore.modelImportExport/models/testInstance3.mps index 746a10ce4e0..5cdc9dbb7c2 100644 --- a/code/languages/com.mbeddr.mpsutil/tests/test.com.mbeddr.mpsutil.ecore.modelImportExport/models/testInstance3.mps +++ b/code/languages/com.mbeddr.mpsutil/tests/test.com.mbeddr.mpsutil.ecore.modelImportExport/models/testInstance3.mps @@ -1,6 +1,7 @@ + diff --git a/code/languages/com.mbeddr.mpsutil/tests/test.com.mbeddr.mpsutil.ecore.modelImportExport/models/testInstance4.mps b/code/languages/com.mbeddr.mpsutil/tests/test.com.mbeddr.mpsutil.ecore.modelImportExport/models/testInstance4.mps index 8983b8544b7..82a428d8189 100644 --- a/code/languages/com.mbeddr.mpsutil/tests/test.com.mbeddr.mpsutil.ecore.modelImportExport/models/testInstance4.mps +++ b/code/languages/com.mbeddr.mpsutil/tests/test.com.mbeddr.mpsutil.ecore.modelImportExport/models/testInstance4.mps @@ -1,6 +1,7 @@ + diff --git a/code/languages/com.mbeddr.mpsutil/tests/test.com.mbeddr.mpsutil.ecore.modelImportExport/models/testInstance5.mps b/code/languages/com.mbeddr.mpsutil/tests/test.com.mbeddr.mpsutil.ecore.modelImportExport/models/testInstance5.mps index 8d866d95c36..b54881be801 100644 --- a/code/languages/com.mbeddr.mpsutil/tests/test.com.mbeddr.mpsutil.ecore.modelImportExport/models/testInstance5.mps +++ b/code/languages/com.mbeddr.mpsutil/tests/test.com.mbeddr.mpsutil.ecore.modelImportExport/models/testInstance5.mps @@ -1,6 +1,7 @@ + diff --git a/code/languages/com.mbeddr.mpsutil/tests/test.com.mbeddr.mpsutil.ecore.modelImportExport/models/testInstance6.mps b/code/languages/com.mbeddr.mpsutil/tests/test.com.mbeddr.mpsutil.ecore.modelImportExport/models/testInstance6.mps index eea3ea2213e..cc4166140c9 100644 --- a/code/languages/com.mbeddr.mpsutil/tests/test.com.mbeddr.mpsutil.ecore.modelImportExport/models/testInstance6.mps +++ b/code/languages/com.mbeddr.mpsutil/tests/test.com.mbeddr.mpsutil.ecore.modelImportExport/models/testInstance6.mps @@ -1,6 +1,7 @@ +