From 2f5f3a8170a69465a21922c18623cb3c447597fd Mon Sep 17 00:00:00 2001 From: Sascha Lisson Date: Wed, 22 Jan 2025 18:06:14 +0100 Subject: [PATCH] feat(mps-model-adapters): full support for recreating an MPS project The bulk sync so far could only synchronize existing models, but not create new ones. --- .../lib/test/RecreateProjectFromModelServerTest.kt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/bulk-model-sync-lib/mps-test/src/test/kotlin/org/modelix/model/sync/bulk/lib/test/RecreateProjectFromModelServerTest.kt b/bulk-model-sync-lib/mps-test/src/test/kotlin/org/modelix/model/sync/bulk/lib/test/RecreateProjectFromModelServerTest.kt index bc2dadfb3a..25eb4eb8c6 100644 --- a/bulk-model-sync-lib/mps-test/src/test/kotlin/org/modelix/model/sync/bulk/lib/test/RecreateProjectFromModelServerTest.kt +++ b/bulk-model-sync-lib/mps-test/src/test/kotlin/org/modelix/model/sync/bulk/lib/test/RecreateProjectFromModelServerTest.kt @@ -121,14 +121,18 @@ class RecreateProjectFromModelServerTest : UsefulTestCase() { val syncedContents = filterFiles(emptyProject.captureFileContents()) - fun Map.contentsAsString() = entries.sortedBy { it.key }.joinToString("\n\n\n") { "------ ${it.key} ------\n${it.value}" } + fun Map.contentsAsString(): String { + return entries.sortedBy { it.key }.joinToString("\n\n\n") { "------ ${it.key} ------\n${it.value}" } + .replace("""