activated automatic tests

This commit is contained in:
JanikNex 2024-01-03 13:55:51 +01:00
parent 5a64778bab
commit 3cea5cd039
3 changed files with 1 additions and 8 deletions

File diff suppressed because one or more lines are too long

View file

@ -1,7 +1,6 @@
import de.nexus.mmlcli.generator.EmfResourceBuilder;
import de.nexus.mmlcli.generator.SerializedDocument;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.io.TempDir;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.MethodSource;
@ -20,7 +19,6 @@ public class GeneratorTests {
return TestUtils.getTestBundles(TEST_DATA_FOLDER).stream();
}
@Disabled
@ParameterizedTest
@MethodSource("testBundleProvider")
void testCorrectEcoreGeneration(TestBundle bundle, @TempDir File workingDir) throws IOException {

View file

@ -5,7 +5,6 @@ import de.nexus.mmlcli.serializer.EmfResourceLoader;
import de.nexus.mmlcli.serializer.MmlSerializedGenerator;
import org.eclipse.emf.ecore.EPackage;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.io.TempDir;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.MethodSource;
@ -24,13 +23,9 @@ public class TwoWayEcoreTests {
return TestUtils.getTestBundles(TEST_DATA_FOLDER).stream();
}
@Disabled
@ParameterizedTest
@MethodSource("testBundleProvider")
void testCorrectTwowaySerialization(TestBundle bundle, @TempDir File workingDir) throws IOException {
if (!bundle.getBundleName().equals("HospitalExample")) {
return;
}
EPackage ePackage = EmfResourceLoader.loadEmfResources(bundle.getEcoreFile());
PackageEntity packageEntity = MmlSerializedGenerator.buildEntities(ePackage);
String generatedSerialization = MmlSerializedGenerator.serializeEntities(packageEntity, bundle.getEcoreFile().toURI());