=UTF-8
diff --git a/de.dlr.sc.virsat.test.utils/.settings/org.eclipse.core.runtime.prefs b/de.dlr.sc.virsat.test.utils/.settings/org.eclipse.core.runtime.prefs
new file mode 100644
index 0000000000..deae05a977
--- /dev/null
+++ b/de.dlr.sc.virsat.test.utils/.settings/org.eclipse.core.runtime.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+line.separator=\r\n
diff --git a/de.dlr.sc.virsat.test.utils/.settings/org.eclipse.jdt.core.prefs b/de.dlr.sc.virsat.test.utils/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 0000000000..d4540a53f9
--- /dev/null
+++ b/de.dlr.sc.virsat.test.utils/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,10 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=17
+org.eclipse.jdt.core.compiler.compliance=17
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
+org.eclipse.jdt.core.compiler.release=enabled
+org.eclipse.jdt.core.compiler.source=17
diff --git a/de.dlr.sc.virsat.test.utils/.settings/org.eclipse.m2e.core.prefs b/de.dlr.sc.virsat.test.utils/.settings/org.eclipse.m2e.core.prefs
new file mode 100644
index 0000000000..f897a7f1cb
--- /dev/null
+++ b/de.dlr.sc.virsat.test.utils/.settings/org.eclipse.m2e.core.prefs
@@ -0,0 +1,4 @@
+activeProfiles=
+eclipse.preferences.version=1
+resolveWorkspaceProjects=true
+version=1
diff --git a/de.dlr.sc.virsat.test.utils/.settings/org.eclipse.mylyn.team.ui.prefs b/de.dlr.sc.virsat.test.utils/.settings/org.eclipse.mylyn.team.ui.prefs
new file mode 100644
index 0000000000..426f180206
--- /dev/null
+++ b/de.dlr.sc.virsat.test.utils/.settings/org.eclipse.mylyn.team.ui.prefs
@@ -0,0 +1,2 @@
+commit.comment.template=Write a Heading here - (Task \#${task.key})\r\n\r\nPut your Message here.\r\n\r\n---\r\nTask \#${task.key}\: ${task.description}
+eclipse.preferences.version=1
diff --git a/de.dlr.sc.virsat.test.utils/META-INF/MANIFEST.MF b/de.dlr.sc.virsat.test.utils/META-INF/MANIFEST.MF
new file mode 100644
index 0000000000..6eee74f9d8
--- /dev/null
+++ b/de.dlr.sc.virsat.test.utils/META-INF/MANIFEST.MF
@@ -0,0 +1,15 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: VirSat Test Utils
+Bundle-SymbolicName: de.dlr.sc.virsat.test.utils
+Bundle-Version: 4.18.0.qualifier
+Bundle-Activator: de.dlr.sc.virsat.test.utils.Activator
+Bundle-Vendor: DLR (German Aerospace Center)
+Require-Bundle: org.eclipse.core.runtime,
+ org.eclipse.core.resources,
+ org.junit
+Bundle-RequiredExecutionEnvironment: JavaSE-17
+Bundle-ActivationPolicy: lazy
+Eclipse-ExtensibleAPI: true
+Export-Package: de.dlr.sc.virsat.test.utils
+Automatic-Module-Name: de.dlr.sc.virsat.test.utils
diff --git a/de.dlr.sc.virsat.test.utils/about.html b/de.dlr.sc.virsat.test.utils/about.html
new file mode 100644
index 0000000000..39cd6411ff
--- /dev/null
+++ b/de.dlr.sc.virsat.test.utils/about.html
@@ -0,0 +1,27 @@
+
+
+
+
+About
+
+
+About This Content
+
+December 18, 2018
+License
+
+The German Aerospace Center (DLR) makes available all content in this plug-in ("Content"). Unless otherwise
+indicated below, the Content is provided to you under the terms and conditions of the
+Eclipse Public License Version 2.0 ("EPL"). A copy of the EPL is available
+at https://www.eclipse.org/legal/epl-2.0.
+For purposes of the EPL, "Program" will mean the Content.
+
+If you did not receive this Content directly from German Aerospace Center (DLR), the Content is
+being redistributed by another party ("Redistributor") and different terms and conditions may
+apply to your use of any object code in the Content. Check the Redistributor's license that was
+provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
+indicated below, the terms and conditions of the EPL still apply to this content.
+
+
+
diff --git a/de.dlr.sc.virsat.test.utils/build.properties b/de.dlr.sc.virsat.test.utils/build.properties
new file mode 100644
index 0000000000..dff841f70e
--- /dev/null
+++ b/de.dlr.sc.virsat.test.utils/build.properties
@@ -0,0 +1,6 @@
+source.. = src/
+output.. = target/classes/
+bin.includes = META-INF/,\
+ .,\
+ resources/,\
+ about.html
diff --git a/de.dlr.sc.virsat.test.utils/pom.xml b/de.dlr.sc.virsat.test.utils/pom.xml
new file mode 100644
index 0000000000..d7a8040393
--- /dev/null
+++ b/de.dlr.sc.virsat.test.utils/pom.xml
@@ -0,0 +1,23 @@
+
+
+
+
+ de.dlr.sc.virsat.parent
+ de.dlr.sc.virsat
+ 4.18.0-SNAPSHOT
+ ../maven/pom.xml
+
+ 4.0.0
+ de.dlr.sc.virsat.test.utils
+ de.dlr.sc.virsat.test.utils
+ eclipse-plugin
+
\ No newline at end of file
diff --git a/de.dlr.sc.virsat.test.utils/resources/.empty b/de.dlr.sc.virsat.test.utils/resources/.empty
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/de.dlr.sc.virsat.test.utils/src/de/dlr/sc/virsat/test/utils/Activator.java b/de.dlr.sc.virsat.test.utils/src/de/dlr/sc/virsat/test/utils/Activator.java
new file mode 100644
index 0000000000..351311ef5d
--- /dev/null
+++ b/de.dlr.sc.virsat.test.utils/src/de/dlr/sc/virsat/test/utils/Activator.java
@@ -0,0 +1,46 @@
+/*******************************************************************************
+ * Copyright (c) 2008-2019 German Aerospace Center (DLR), Simulation and Software Technology, Germany.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License 2.0 which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ *******************************************************************************/
+package de.dlr.sc.virsat.test.utils;
+
+import org.eclipse.core.runtime.Plugin;
+import org.osgi.framework.BundleContext;
+
+
+/**
+ * the activator is the entry point for this plugin
+ */
+public class Activator extends Plugin {
+
+ private static String pluginId;
+ private static Activator plugin;
+
+ @Override
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ plugin = this;
+ Activator.pluginId = getDefault().getBundle().getSymbolicName();
+ }
+
+ @Override
+ public void stop(BundleContext context) throws Exception {
+ plugin = null;
+ super.stop(context);
+ }
+
+ public static Activator getDefault() {
+ return plugin;
+ }
+
+ public static String getPluginId() {
+ return pluginId;
+ }
+
+
+}
diff --git a/de.dlr.sc.virsat.test.utils/src/de/dlr/sc/virsat/test/utils/TestUtil.java b/de.dlr.sc.virsat.test.utils/src/de/dlr/sc/virsat/test/utils/TestUtil.java
new file mode 100644
index 0000000000..b03cd92118
--- /dev/null
+++ b/de.dlr.sc.virsat.test.utils/src/de/dlr/sc/virsat/test/utils/TestUtil.java
@@ -0,0 +1,83 @@
+/*******************************************************************************
+ * Copyright (c) 2008-2019 German Aerospace Center (DLR), Simulation and Software Technology, Germany.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License 2.0 which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ *******************************************************************************/
+package de.dlr.sc.virsat.test.utils;
+
+import java.io.BufferedReader;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+import java.io.PrintWriter;
+import java.net.URL;
+
+import org.junit.Assert;
+
+public class TestUtil {
+
+ private TestUtil() {
+ }
+
+ /**
+ * Set this flag to output the actual content to the console
+ */
+
+ private static final String ENV_VARIABLE_FLUSH_ACTUAL = "flushActualGeneratorFiles";
+ private static final String ENV_VARIABLE_FLUSH_ACTUAL_TRUE = "true";
+ private static final String ENV_VARIABLE_FLUSH_PATH = "flushActualPath";
+
+
+ /**
+ * Method to check content against a reference from the resources folder
+ * @param actual the current content as string
+ * @param expectedFilePath the path to the file containing the expected content
+ * @throws IOException in case the expected content file could not be read
+ */
+ public static void assertEqualContent(String actual, String fragementId, String expectedFilePath) throws IOException {
+
+ if (ENV_VARIABLE_FLUSH_ACTUAL_TRUE.equalsIgnoreCase(System.getenv(ENV_VARIABLE_FLUSH_ACTUAL))) {
+ String fileName = System.getenv(ENV_VARIABLE_FLUSH_PATH) + expectedFilePath.substring(expectedFilePath.lastIndexOf('/'), expectedFilePath.length());
+
+ PrintWriter writer = new PrintWriter(fileName, "UTF-8");
+ writer.println(actual);
+ writer.close();
+ return;
+ }
+
+ String expectedString = getResourceContentAsString(fragementId, expectedFilePath);
+ String expectedNoWs = expectedString.replaceAll("\\s+", "");
+ String actualNoWs = actual.replaceAll("\\s+", "");
+
+ if (!expectedNoWs.equals(actualNoWs)) {
+ Assert.assertEquals("File content for " + expectedFilePath + " is correct", expectedString, actual);
+ }
+ }
+
+ /**
+ * Method to access the fragments contents from the resource folder and to hand it back as string
+ * @param resourcePath the path to the resource starting with "resource/"
+ * @return the content of the resource as string
+ * @throws IOException throws
+ */
+ public static String getResourceContentAsString(String fragmentId, String resourcePath) throws IOException {
+ URL url = new URL("platform:/plugin/" + fragmentId + resourcePath);
+ InputStream inputStream = url.openConnection().getInputStream();
+
+ StringBuilder fileContent = new StringBuilder();
+ try (BufferedReader in = new BufferedReader(new InputStreamReader(inputStream))) {
+ String inputLine;
+
+ while ((inputLine = in.readLine()) != null) {
+ fileContent.append(inputLine);
+ fileContent.append(System.lineSeparator());
+ }
+ }
+
+ return fileContent.toString();
+ }
+}
diff --git a/launchers/VirSat Headless Server.launch b/launchers/VirSat Headless Server.launch
index 167f01ee43..76164cd28d 100644
--- a/launchers/VirSat Headless Server.launch
+++ b/launchers/VirSat Headless Server.launch
@@ -64,7 +64,10 @@
+
+
+
@@ -83,7 +86,11 @@
+
+
+
+
diff --git a/pom.xml b/pom.xml
index ce169383da..feba9dafc4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -133,6 +133,7 @@
de.dlr.sc.virsat.server.swagger.ui
de.dlr.sc.virsat.concept.unittest.util
+ de.dlr.sc.virsat.test.utils
de.dlr.sc.virsat.test
de.dlr.sc.virsat.model.extension.thermal