mirror of
https://github.com/eMoflon/model-modeling-language-cli.git
synced 2024-05-21 20:00:51 +00:00
activated automatic tests
This commit is contained in:
parent
5a64778bab
commit
3cea5cd039
File diff suppressed because one or more lines are too long
|
@ -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 {
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue