From a4b22afb474ea4c76cac80d8fcad53e0fea535c1 Mon Sep 17 00:00:00 2001 From: Kevin Knight <57677197+kevin-m-knight-gs@users.noreply.github.com> Date: Tue, 22 Oct 2024 08:43:10 -0400 Subject: [PATCH] Add compiled state integrity tests for several modules (#3190) * Fix typos in names of compiled state integrity tests * Clean up compiled state integrity test for core * Add compiled state integrity test for core_diagram_metamodel * Add compiled state integrity test for core_diagram * Add compiled state integrity test for core_external_language_java * Add compiled state integrity test for core_external_language_java_feature_based_generation * Add compiled state integrity test for core_java_platform_binding * Add compiled state integrity test for core_java_platform_binding_external_format * Add compiled state integrity test for core_external_format_json * Add compiled state integrity test for core_external_format_json_java_platform_binding * Add compiled state integrity test for core_text_metamodel * Add compiled state integrity test for core_external_format_xml * Add compiled state integrity test for core_external_format_xml_java_platform_binding --- .../pom.xml | 40 +++++-------------- .../core/TestCoreCompiledStateIntegrity.java | 7 +--- ...tFunctionsJsonCompiledStateIntegrity.java} | 2 +- ...ctionsRelationCompiledStateIntegrity.java} | 4 +- ...ctionsStandardCompiledStateIntegrity.java} | 4 +- ...nsUnclassifiedCompiledStateIntegrity.java} | 4 +- .../pom.xml | 28 ++++++++++--- ...iagramMetamodelCompiledStateIntegrity.java | 27 +++++++++++++ .../legend-engine-xt-diagram-pure/pom.xml | 18 +++++++++ ...TestCoreDiagramCompiledStateIntegrity.java | 27 +++++++++++++ .../pom.xml | 14 +++++-- ...BasedGenerationCompiledStateIntegrity.java | 38 ++++++++++++++++++ .../pom.xml | 28 +++++++++++-- ...nalLanguageJavaCompiledStateIntegrity.java | 38 ++++++++++++++++++ .../pom.xml | 13 +++++- ...gExternalFormatCompiledStateIntegrity.java | 38 ++++++++++++++++++ .../pom.xml | 12 +++++- ...PlatformBindingCompiledStateIntegrity.java | 38 ++++++++++++++++++ .../pom.xml | 13 +++++- ...PlatformBindingCompiledStateIntegrity.java | 38 ++++++++++++++++++ .../legend-engine-xt-json-pure/pom.xml | 22 +++++++--- ...ernalFormatJsonCompiledStateIntegrity.java | 38 ++++++++++++++++++ .../pom.xml | 13 ++++++ ...reTextMetamodelCompiledStateIntegrity.java | 27 +++++++++++++ .../pom.xml | 14 ++++++- ...PlatformBindingCompiledStateIntegrity.java | 38 ++++++++++++++++++ .../legend-engine-xt-xml-pure/pom.xml | 11 +++++ ...ternalFormatXmlCompiledStateIntegrity.java | 38 ++++++++++++++++++ 28 files changed, 567 insertions(+), 65 deletions(-) rename legend-engine-core/legend-engine-core-pure/legend-engine-pure-code-functions-json/legend-engine-pure-functions-json-pure/src/test/java/org/finos/legend/engine/pure/code/core/functions/json/{TestFunctionsJsonCompiledStateStrategy.java => TestFunctionsJsonCompiledStateIntegrity.java} (90%) rename legend-engine-core/legend-engine-core-pure/legend-engine-pure-code-functions-relation/legend-engine-pure-functions-relation-pure/src/test/java/org/finos/legend/engine/pure/code/core/functions/relation/{TestFunctionsRelationCompiledStateStrategy.java => TestFunctionsRelationCompiledStateIntegrity.java} (89%) rename legend-engine-core/legend-engine-core-pure/legend-engine-pure-code-functions-standard/legend-engine-pure-functions-standard-pure/src/test/java/org/finos/legend/engine/pure/code/core/functions/standard/{TestFunctionsStandardCompiledStateStrategy.java => TestFunctionsStandardCompiledStateIntegrity.java} (89%) rename legend-engine-core/legend-engine-core-pure/legend-engine-pure-code-functions-unclassified/legend-engine-pure-functions-unclassified-pure/src/test/java/org/finos/legend/engine/pure/code/core/functions/unclassified/{TestFunctionsUnclassifiedCompiledStateStrategy.java => TestFunctionsUnclassifiedCompiledStateIntegrity.java} (89%) create mode 100644 legend-engine-xts-diagram/legend-engine-xt-diagram-pure-metamodel/src/test/java/org/finos/legend/pure/code/core/TestCoreDiagramMetamodelCompiledStateIntegrity.java create mode 100644 legend-engine-xts-diagram/legend-engine-xt-diagram-pure/src/test/java/org/finos/legend/pure/code/core/TestCoreDiagramCompiledStateIntegrity.java create mode 100644 legend-engine-xts-java/legend-engine-xt-javaGeneration-featureBased-pure/src/test/java/org/finos/legend/engine/pure/code/core/TestCoreExternalLanguageJavaFeatureBasedGenerationCompiledStateIntegrity.java create mode 100644 legend-engine-xts-java/legend-engine-xt-javaGeneration-pure/src/test/java/org/finos/legend/engine/pure/code/core/TestCoreExternalLanguageJavaCompiledStateIntegrity.java create mode 100644 legend-engine-xts-java/legend-engine-xt-javaPlatformBinding-externalFormat-pure/src/test/java/org/finos/legend/engine/pure/code/core/TestCoreJavaPlatformBindingExternalFormatCompiledStateIntegrity.java create mode 100644 legend-engine-xts-java/legend-engine-xt-javaPlatformBinding-pure/src/test/java/org/finos/legend/engine/pure/code/core/TestCoreJavaPlatformBindingCompiledStateIntegrity.java create mode 100644 legend-engine-xts-json/legend-engine-xt-json-javaPlatformBinding-pure/src/test/java/org/finos/legend/engine/pure/code/core/json/binding/TestCoreExternalFormatJsonJavaPlatformBindingCompiledStateIntegrity.java create mode 100644 legend-engine-xts-json/legend-engine-xt-json-pure/src/test/java/org/finos/legend/engine/pure/code/core/json/TestCoreExternalFormatJsonCompiledStateIntegrity.java create mode 100644 legend-engine-xts-text/legend-engine-xt-text-pure-metamodel/src/test/java/org/finos/legend/engine/pure/code/core/text/TestCoreTextMetamodelCompiledStateIntegrity.java create mode 100644 legend-engine-xts-xml/legend-engine-xt-xml-javaPlatformBinding-pure/src/test/java/org/finos/legend/engine/pure/code/core/xml/binding/TestCoreExternalFormatXmlJavaPlatformBindingCompiledStateIntegrity.java create mode 100644 legend-engine-xts-xml/legend-engine-xt-xml-pure/src/test/java/org/finos/legend/pure/code/core/external/format/xml/TestCoreExternalFormatXmlCompiledStateIntegrity.java diff --git a/legend-engine-core/legend-engine-core-pure/legend-engine-pure-code-compiled-core/pom.xml b/legend-engine-core/legend-engine-core-pure/legend-engine-pure-code-compiled-core/pom.xml index 88286a28a47..24f873a1ba2 100644 --- a/legend-engine-core/legend-engine-core-pure/legend-engine-pure-code-compiled-core/pom.xml +++ b/legend-engine-core/legend-engine-core-pure/legend-engine-pure-code-compiled-core/pom.xml @@ -205,7 +205,6 @@ legend-engine-pure-runtime-java-extension-compiled-functions-unclassified ${project.version} - @@ -251,14 +250,6 @@ org.finos.legend.pure legend-pure-runtime-java-engine-compiled - - - - - - - - org.finos.legend.engine @@ -303,16 +294,7 @@ org.finos.legend.engine legend-engine-pure-runtime-java-extension-compiled-functions-json - - - - - - - - - org.finos.legend.pure legend-pure-runtime-java-extension-compiled-store-relational @@ -444,14 +426,19 @@ - + - - - + + + - - + @@ -461,9 +448,4 @@ - - - - - diff --git a/legend-engine-core/legend-engine-core-pure/legend-engine-pure-code-compiled-core/src/test/java/org/finos/legend/engine/pure/code/core/TestCoreCompiledStateIntegrity.java b/legend-engine-core/legend-engine-core-pure/legend-engine-pure-code-compiled-core/src/test/java/org/finos/legend/engine/pure/code/core/TestCoreCompiledStateIntegrity.java index 60fbab53251..436959ac22e 100644 --- a/legend-engine-core/legend-engine-core-pure/legend-engine-pure-code-compiled-core/src/test/java/org/finos/legend/engine/pure/code/core/TestCoreCompiledStateIntegrity.java +++ b/legend-engine-core/legend-engine-core-pure/legend-engine-pure-code-compiled-core/src/test/java/org/finos/legend/engine/pure/code/core/TestCoreCompiledStateIntegrity.java @@ -14,10 +14,6 @@ package org.finos.legend.engine.pure.code.core; -import org.finos.legend.pure.m3.serialization.filesystem.repository.CodeRepositoryProviderHelper; -import org.finos.legend.pure.m3.serialization.filesystem.usercodestorage.MutableRepositoryCodeStorage; -import org.finos.legend.pure.m3.serialization.filesystem.usercodestorage.classpath.ClassLoaderCodeStorage; -import org.finos.legend.pure.m3.serialization.filesystem.usercodestorage.composite.CompositeCodeStorage; import org.finos.legend.pure.m3.tests.AbstractCompiledStateIntegrityTest; import org.junit.BeforeClass; import org.junit.Ignore; @@ -28,8 +24,7 @@ public class TestCoreCompiledStateIntegrity extends AbstractCompiledStateIntegri @BeforeClass public static void initialize() { - MutableRepositoryCodeStorage codeStorage = new CompositeCodeStorage(new ClassLoaderCodeStorage(CodeRepositoryProviderHelper.findCodeRepositories())); - initialize(codeStorage); + initialize("core"); } @Test diff --git a/legend-engine-core/legend-engine-core-pure/legend-engine-pure-code-functions-json/legend-engine-pure-functions-json-pure/src/test/java/org/finos/legend/engine/pure/code/core/functions/json/TestFunctionsJsonCompiledStateStrategy.java b/legend-engine-core/legend-engine-core-pure/legend-engine-pure-code-functions-json/legend-engine-pure-functions-json-pure/src/test/java/org/finos/legend/engine/pure/code/core/functions/json/TestFunctionsJsonCompiledStateIntegrity.java similarity index 90% rename from legend-engine-core/legend-engine-core-pure/legend-engine-pure-code-functions-json/legend-engine-pure-functions-json-pure/src/test/java/org/finos/legend/engine/pure/code/core/functions/json/TestFunctionsJsonCompiledStateStrategy.java rename to legend-engine-core/legend-engine-core-pure/legend-engine-pure-code-functions-json/legend-engine-pure-functions-json-pure/src/test/java/org/finos/legend/engine/pure/code/core/functions/json/TestFunctionsJsonCompiledStateIntegrity.java index 2cc43504b61..feae4d96ebc 100644 --- a/legend-engine-core/legend-engine-core-pure/legend-engine-pure-code-functions-json/legend-engine-pure-functions-json-pure/src/test/java/org/finos/legend/engine/pure/code/core/functions/json/TestFunctionsJsonCompiledStateStrategy.java +++ b/legend-engine-core/legend-engine-core-pure/legend-engine-pure-code-functions-json/legend-engine-pure-functions-json-pure/src/test/java/org/finos/legend/engine/pure/code/core/functions/json/TestFunctionsJsonCompiledStateIntegrity.java @@ -17,7 +17,7 @@ import org.finos.legend.pure.m3.tests.AbstractCompiledStateIntegrityTest; import org.junit.BeforeClass; -public class TestFunctionsJsonCompiledStateStrategy extends AbstractCompiledStateIntegrityTest +public class TestFunctionsJsonCompiledStateIntegrity extends AbstractCompiledStateIntegrityTest { @BeforeClass public static void initialize() diff --git a/legend-engine-core/legend-engine-core-pure/legend-engine-pure-code-functions-relation/legend-engine-pure-functions-relation-pure/src/test/java/org/finos/legend/engine/pure/code/core/functions/relation/TestFunctionsRelationCompiledStateStrategy.java b/legend-engine-core/legend-engine-core-pure/legend-engine-pure-code-functions-relation/legend-engine-pure-functions-relation-pure/src/test/java/org/finos/legend/engine/pure/code/core/functions/relation/TestFunctionsRelationCompiledStateIntegrity.java similarity index 89% rename from legend-engine-core/legend-engine-core-pure/legend-engine-pure-code-functions-relation/legend-engine-pure-functions-relation-pure/src/test/java/org/finos/legend/engine/pure/code/core/functions/relation/TestFunctionsRelationCompiledStateStrategy.java rename to legend-engine-core/legend-engine-core-pure/legend-engine-pure-code-functions-relation/legend-engine-pure-functions-relation-pure/src/test/java/org/finos/legend/engine/pure/code/core/functions/relation/TestFunctionsRelationCompiledStateIntegrity.java index d4dea3ea265..325bc7ecc0b 100644 --- a/legend-engine-core/legend-engine-core-pure/legend-engine-pure-code-functions-relation/legend-engine-pure-functions-relation-pure/src/test/java/org/finos/legend/engine/pure/code/core/functions/relation/TestFunctionsRelationCompiledStateStrategy.java +++ b/legend-engine-core/legend-engine-core-pure/legend-engine-pure-code-functions-relation/legend-engine-pure-functions-relation-pure/src/test/java/org/finos/legend/engine/pure/code/core/functions/relation/TestFunctionsRelationCompiledStateIntegrity.java @@ -17,11 +17,11 @@ import org.finos.legend.pure.m3.tests.AbstractCompiledStateIntegrityTest; import org.junit.BeforeClass; -public class TestFunctionsRelationCompiledStateStrategy extends AbstractCompiledStateIntegrityTest +public class TestFunctionsRelationCompiledStateIntegrity extends AbstractCompiledStateIntegrityTest { @BeforeClass public static void initialize() { initialize("core_functions_relation"); } -} \ No newline at end of file +} diff --git a/legend-engine-core/legend-engine-core-pure/legend-engine-pure-code-functions-standard/legend-engine-pure-functions-standard-pure/src/test/java/org/finos/legend/engine/pure/code/core/functions/standard/TestFunctionsStandardCompiledStateStrategy.java b/legend-engine-core/legend-engine-core-pure/legend-engine-pure-code-functions-standard/legend-engine-pure-functions-standard-pure/src/test/java/org/finos/legend/engine/pure/code/core/functions/standard/TestFunctionsStandardCompiledStateIntegrity.java similarity index 89% rename from legend-engine-core/legend-engine-core-pure/legend-engine-pure-code-functions-standard/legend-engine-pure-functions-standard-pure/src/test/java/org/finos/legend/engine/pure/code/core/functions/standard/TestFunctionsStandardCompiledStateStrategy.java rename to legend-engine-core/legend-engine-core-pure/legend-engine-pure-code-functions-standard/legend-engine-pure-functions-standard-pure/src/test/java/org/finos/legend/engine/pure/code/core/functions/standard/TestFunctionsStandardCompiledStateIntegrity.java index 22f24494570..c0065eee941 100644 --- a/legend-engine-core/legend-engine-core-pure/legend-engine-pure-code-functions-standard/legend-engine-pure-functions-standard-pure/src/test/java/org/finos/legend/engine/pure/code/core/functions/standard/TestFunctionsStandardCompiledStateStrategy.java +++ b/legend-engine-core/legend-engine-core-pure/legend-engine-pure-code-functions-standard/legend-engine-pure-functions-standard-pure/src/test/java/org/finos/legend/engine/pure/code/core/functions/standard/TestFunctionsStandardCompiledStateIntegrity.java @@ -17,11 +17,11 @@ import org.finos.legend.pure.m3.tests.AbstractCompiledStateIntegrityTest; import org.junit.BeforeClass; -public class TestFunctionsStandardCompiledStateStrategy extends AbstractCompiledStateIntegrityTest +public class TestFunctionsStandardCompiledStateIntegrity extends AbstractCompiledStateIntegrityTest { @BeforeClass public static void initialize() { initialize("core_functions_standard"); } -} \ No newline at end of file +} diff --git a/legend-engine-core/legend-engine-core-pure/legend-engine-pure-code-functions-unclassified/legend-engine-pure-functions-unclassified-pure/src/test/java/org/finos/legend/engine/pure/code/core/functions/unclassified/TestFunctionsUnclassifiedCompiledStateStrategy.java b/legend-engine-core/legend-engine-core-pure/legend-engine-pure-code-functions-unclassified/legend-engine-pure-functions-unclassified-pure/src/test/java/org/finos/legend/engine/pure/code/core/functions/unclassified/TestFunctionsUnclassifiedCompiledStateIntegrity.java similarity index 89% rename from legend-engine-core/legend-engine-core-pure/legend-engine-pure-code-functions-unclassified/legend-engine-pure-functions-unclassified-pure/src/test/java/org/finos/legend/engine/pure/code/core/functions/unclassified/TestFunctionsUnclassifiedCompiledStateStrategy.java rename to legend-engine-core/legend-engine-core-pure/legend-engine-pure-code-functions-unclassified/legend-engine-pure-functions-unclassified-pure/src/test/java/org/finos/legend/engine/pure/code/core/functions/unclassified/TestFunctionsUnclassifiedCompiledStateIntegrity.java index 4e261ba519b..16556488f75 100644 --- a/legend-engine-core/legend-engine-core-pure/legend-engine-pure-code-functions-unclassified/legend-engine-pure-functions-unclassified-pure/src/test/java/org/finos/legend/engine/pure/code/core/functions/unclassified/TestFunctionsUnclassifiedCompiledStateStrategy.java +++ b/legend-engine-core/legend-engine-core-pure/legend-engine-pure-code-functions-unclassified/legend-engine-pure-functions-unclassified-pure/src/test/java/org/finos/legend/engine/pure/code/core/functions/unclassified/TestFunctionsUnclassifiedCompiledStateIntegrity.java @@ -17,11 +17,11 @@ import org.finos.legend.pure.m3.tests.AbstractCompiledStateIntegrityTest; import org.junit.BeforeClass; -public class TestFunctionsUnclassifiedCompiledStateStrategy extends AbstractCompiledStateIntegrityTest +public class TestFunctionsUnclassifiedCompiledStateIntegrity extends AbstractCompiledStateIntegrityTest { @BeforeClass public static void initialize() { initialize("core_functions_unclassified"); } -} \ No newline at end of file +} diff --git a/legend-engine-xts-diagram/legend-engine-xt-diagram-pure-metamodel/pom.xml b/legend-engine-xts-diagram/legend-engine-xt-diagram-pure-metamodel/pom.xml index 578dccbd802..b6428579a6b 100644 --- a/legend-engine-xts-diagram/legend-engine-xt-diagram-pure-metamodel/pom.xml +++ b/legend-engine-xts-diagram/legend-engine-xt-diagram-pure-metamodel/pom.xml @@ -84,11 +84,6 @@ - - org.finos.legend.pure - legend-pure-m2-dsl-mapping-grammar - ${legend.pure.version} - org.finos.legend.pure legend-pure-m2-dsl-diagram-grammar @@ -109,6 +104,11 @@ org.finos.legend.pure legend-pure-m3-core + + org.finos.legend.pure + legend-pure-m2-dsl-diagram-pure + runtime + org.finos.legend.pure legend-pure-runtime-java-engine-compiled @@ -126,5 +126,23 @@ org.eclipse.collections eclipse-collections-api + + + + junit + junit + + + org.finos.legend.pure + legend-pure-m3-core + test-jar + test + + + org.finos.legend.pure + legend-pure-m2-dsl-diagram-grammar + test + + diff --git a/legend-engine-xts-diagram/legend-engine-xt-diagram-pure-metamodel/src/test/java/org/finos/legend/pure/code/core/TestCoreDiagramMetamodelCompiledStateIntegrity.java b/legend-engine-xts-diagram/legend-engine-xt-diagram-pure-metamodel/src/test/java/org/finos/legend/pure/code/core/TestCoreDiagramMetamodelCompiledStateIntegrity.java new file mode 100644 index 00000000000..7c8330f574c --- /dev/null +++ b/legend-engine-xts-diagram/legend-engine-xt-diagram-pure-metamodel/src/test/java/org/finos/legend/pure/code/core/TestCoreDiagramMetamodelCompiledStateIntegrity.java @@ -0,0 +1,27 @@ +// Copyright 2024 Goldman Sachs +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.finos.legend.pure.code.core; + +import org.finos.legend.pure.m3.tests.AbstractCompiledStateIntegrityTest; +import org.junit.BeforeClass; + +public class TestCoreDiagramMetamodelCompiledStateIntegrity extends AbstractCompiledStateIntegrityTest +{ + @BeforeClass + public static void initialize() + { + initialize("core_diagram_metamodel"); + } +} diff --git a/legend-engine-xts-diagram/legend-engine-xt-diagram-pure/pom.xml b/legend-engine-xts-diagram/legend-engine-xt-diagram-pure/pom.xml index 8e4c40bfb45..4c07f217bc8 100644 --- a/legend-engine-xts-diagram/legend-engine-xt-diagram-pure/pom.xml +++ b/legend-engine-xts-diagram/legend-engine-xt-diagram-pure/pom.xml @@ -158,5 +158,23 @@ org.eclipse.collections eclipse-collections-api + + + + junit + junit + + + org.finos.legend.pure + legend-pure-m3-core + test-jar + test + + + org.finos.legend.pure + legend-pure-m2-dsl-diagram-grammar + test + + diff --git a/legend-engine-xts-diagram/legend-engine-xt-diagram-pure/src/test/java/org/finos/legend/pure/code/core/TestCoreDiagramCompiledStateIntegrity.java b/legend-engine-xts-diagram/legend-engine-xt-diagram-pure/src/test/java/org/finos/legend/pure/code/core/TestCoreDiagramCompiledStateIntegrity.java new file mode 100644 index 00000000000..b8f11374afa --- /dev/null +++ b/legend-engine-xts-diagram/legend-engine-xt-diagram-pure/src/test/java/org/finos/legend/pure/code/core/TestCoreDiagramCompiledStateIntegrity.java @@ -0,0 +1,27 @@ +// Copyright 2024 Goldman Sachs +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.finos.legend.pure.code.core; + +import org.finos.legend.pure.m3.tests.AbstractCompiledStateIntegrityTest; +import org.junit.BeforeClass; + +public class TestCoreDiagramCompiledStateIntegrity extends AbstractCompiledStateIntegrityTest +{ + @BeforeClass + public static void initialize() + { + initialize("core_diagram"); + } +} diff --git a/legend-engine-xts-java/legend-engine-xt-javaGeneration-featureBased-pure/pom.xml b/legend-engine-xts-java/legend-engine-xt-javaGeneration-featureBased-pure/pom.xml index 0525f3001ae..41db4972ceb 100644 --- a/legend-engine-xts-java/legend-engine-xt-javaGeneration-featureBased-pure/pom.xml +++ b/legend-engine-xts-java/legend-engine-xt-javaGeneration-featureBased-pure/pom.xml @@ -143,12 +143,10 @@ org.finos.legend.pure legend-pure-m3-core - org.finos.legend.pure legend-pure-runtime-java-engine-compiled - @@ -193,7 +191,17 @@ junit junit - + + org.finos.legend.pure + legend-pure-m3-core + test-jar + test + + + org.finos.legend.pure + legend-pure-m2-dsl-diagram-grammar + test + diff --git a/legend-engine-xts-java/legend-engine-xt-javaGeneration-featureBased-pure/src/test/java/org/finos/legend/engine/pure/code/core/TestCoreExternalLanguageJavaFeatureBasedGenerationCompiledStateIntegrity.java b/legend-engine-xts-java/legend-engine-xt-javaGeneration-featureBased-pure/src/test/java/org/finos/legend/engine/pure/code/core/TestCoreExternalLanguageJavaFeatureBasedGenerationCompiledStateIntegrity.java new file mode 100644 index 00000000000..d503e539a01 --- /dev/null +++ b/legend-engine-xts-java/legend-engine-xt-javaGeneration-featureBased-pure/src/test/java/org/finos/legend/engine/pure/code/core/TestCoreExternalLanguageJavaFeatureBasedGenerationCompiledStateIntegrity.java @@ -0,0 +1,38 @@ +// Copyright 2024 Goldman Sachs +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.finos.legend.engine.pure.code.core; + +import org.finos.legend.pure.m3.tests.AbstractCompiledStateIntegrityTest; +import org.junit.BeforeClass; +import org.junit.Ignore; +import org.junit.Test; + +public class TestCoreExternalLanguageJavaFeatureBasedGenerationCompiledStateIntegrity extends AbstractCompiledStateIntegrityTest +{ + @BeforeClass + public static void initialize() + { + initialize("core_external_language_java_feature_based_generation"); + } + + @Test + @Ignore + @Override + public void testReferenceUsages() + { + // TODO fix this test + super.testReferenceUsages(); + } +} diff --git a/legend-engine-xts-java/legend-engine-xt-javaGeneration-pure/pom.xml b/legend-engine-xts-java/legend-engine-xt-javaGeneration-pure/pom.xml index 3e61f1427f9..47e7b4614a9 100644 --- a/legend-engine-xts-java/legend-engine-xt-javaGeneration-pure/pom.xml +++ b/legend-engine-xts-java/legend-engine-xt-javaGeneration-pure/pom.xml @@ -113,17 +113,17 @@ org.finos.legend.pure - legend-pure-m2-dsl-graph-grammar + legend-pure-m2-dsl-diagram-grammar ${legend.pure.version} org.finos.legend.pure - legend-pure-m2-dsl-mapping-grammar + legend-pure-m2-dsl-graph-grammar ${legend.pure.version} org.finos.legend.pure - legend-pure-m2-dsl-diagram-grammar + legend-pure-m2-dsl-mapping-grammar ${legend.pure.version} @@ -197,7 +197,27 @@ junit junit - + + org.finos.legend.pure + legend-pure-m3-core + test-jar + test + + + org.finos.legend.pure + legend-pure-m2-dsl-diagram-grammar + test + + + org.finos.legend.pure + legend-pure-m2-dsl-graph-grammar + test + + + org.finos.legend.pure + legend-pure-m2-dsl-path-grammar + test + diff --git a/legend-engine-xts-java/legend-engine-xt-javaGeneration-pure/src/test/java/org/finos/legend/engine/pure/code/core/TestCoreExternalLanguageJavaCompiledStateIntegrity.java b/legend-engine-xts-java/legend-engine-xt-javaGeneration-pure/src/test/java/org/finos/legend/engine/pure/code/core/TestCoreExternalLanguageJavaCompiledStateIntegrity.java new file mode 100644 index 00000000000..92525262186 --- /dev/null +++ b/legend-engine-xts-java/legend-engine-xt-javaGeneration-pure/src/test/java/org/finos/legend/engine/pure/code/core/TestCoreExternalLanguageJavaCompiledStateIntegrity.java @@ -0,0 +1,38 @@ +// Copyright 2024 Goldman Sachs +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.finos.legend.engine.pure.code.core; + +import org.finos.legend.pure.m3.tests.AbstractCompiledStateIntegrityTest; +import org.junit.BeforeClass; +import org.junit.Ignore; +import org.junit.Test; + +public class TestCoreExternalLanguageJavaCompiledStateIntegrity extends AbstractCompiledStateIntegrityTest +{ + @BeforeClass + public static void initialize() + { + initialize("core_external_language_java"); + } + + @Test + @Ignore + @Override + public void testReferenceUsages() + { + // TODO fix this test + super.testReferenceUsages(); + } +} diff --git a/legend-engine-xts-java/legend-engine-xt-javaPlatformBinding-externalFormat-pure/pom.xml b/legend-engine-xts-java/legend-engine-xt-javaPlatformBinding-externalFormat-pure/pom.xml index c1e2f3be477..ed8495a5be5 100644 --- a/legend-engine-xts-java/legend-engine-xt-javaPlatformBinding-externalFormat-pure/pom.xml +++ b/legend-engine-xts-java/legend-engine-xt-javaPlatformBinding-externalFormat-pure/pom.xml @@ -151,7 +151,6 @@ org.finos.legend.pure legend-pure-runtime-java-engine-compiled - @@ -195,12 +194,22 @@ junit junit + + org.finos.legend.pure + legend-pure-m3-core + test-jar + test + + + org.finos.legend.pure + legend-pure-m2-dsl-diagram-grammar + test + org.finos.legend.engine legend-engine-language-pure-compiler test - diff --git a/legend-engine-xts-java/legend-engine-xt-javaPlatformBinding-externalFormat-pure/src/test/java/org/finos/legend/engine/pure/code/core/TestCoreJavaPlatformBindingExternalFormatCompiledStateIntegrity.java b/legend-engine-xts-java/legend-engine-xt-javaPlatformBinding-externalFormat-pure/src/test/java/org/finos/legend/engine/pure/code/core/TestCoreJavaPlatformBindingExternalFormatCompiledStateIntegrity.java new file mode 100644 index 00000000000..80c18ec4157 --- /dev/null +++ b/legend-engine-xts-java/legend-engine-xt-javaPlatformBinding-externalFormat-pure/src/test/java/org/finos/legend/engine/pure/code/core/TestCoreJavaPlatformBindingExternalFormatCompiledStateIntegrity.java @@ -0,0 +1,38 @@ +// Copyright 2024 Goldman Sachs +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.finos.legend.engine.pure.code.core; + +import org.finos.legend.pure.m3.tests.AbstractCompiledStateIntegrityTest; +import org.junit.BeforeClass; +import org.junit.Ignore; +import org.junit.Test; + +public class TestCoreJavaPlatformBindingExternalFormatCompiledStateIntegrity extends AbstractCompiledStateIntegrityTest +{ + @BeforeClass + public static void initialize() + { + initialize("core_java_platform_binding_external_format"); + } + + @Test + @Ignore + @Override + public void testReferenceUsages() + { + // TODO fix this test + super.testReferenceUsages(); + } +} diff --git a/legend-engine-xts-java/legend-engine-xt-javaPlatformBinding-pure/pom.xml b/legend-engine-xts-java/legend-engine-xt-javaPlatformBinding-pure/pom.xml index 53818b25806..f0cd0636188 100644 --- a/legend-engine-xts-java/legend-engine-xt-javaPlatformBinding-pure/pom.xml +++ b/legend-engine-xts-java/legend-engine-xt-javaPlatformBinding-pure/pom.xml @@ -229,12 +229,22 @@ junit junit + + org.finos.legend.pure + legend-pure-m3-core + test-jar + test + + + org.finos.legend.pure + legend-pure-m2-dsl-diagram-grammar + test + org.finos.legend.engine legend-engine-language-pure-compiler test - diff --git a/legend-engine-xts-java/legend-engine-xt-javaPlatformBinding-pure/src/test/java/org/finos/legend/engine/pure/code/core/TestCoreJavaPlatformBindingCompiledStateIntegrity.java b/legend-engine-xts-java/legend-engine-xt-javaPlatformBinding-pure/src/test/java/org/finos/legend/engine/pure/code/core/TestCoreJavaPlatformBindingCompiledStateIntegrity.java new file mode 100644 index 00000000000..fa9461380b9 --- /dev/null +++ b/legend-engine-xts-java/legend-engine-xt-javaPlatformBinding-pure/src/test/java/org/finos/legend/engine/pure/code/core/TestCoreJavaPlatformBindingCompiledStateIntegrity.java @@ -0,0 +1,38 @@ +// Copyright 2024 Goldman Sachs +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.finos.legend.engine.pure.code.core; + +import org.finos.legend.pure.m3.tests.AbstractCompiledStateIntegrityTest; +import org.junit.BeforeClass; +import org.junit.Ignore; +import org.junit.Test; + +public class TestCoreJavaPlatformBindingCompiledStateIntegrity extends AbstractCompiledStateIntegrityTest +{ + @BeforeClass + public static void initialize() + { + initialize("core_java_platform_binding"); + } + + @Test + @Ignore + @Override + public void testReferenceUsages() + { + // TODO fix this test + super.testReferenceUsages(); + } +} diff --git a/legend-engine-xts-json/legend-engine-xt-json-javaPlatformBinding-pure/pom.xml b/legend-engine-xts-json/legend-engine-xt-json-javaPlatformBinding-pure/pom.xml index 6e8602b9224..a17fdee1a0e 100644 --- a/legend-engine-xts-json/legend-engine-xt-json-javaPlatformBinding-pure/pom.xml +++ b/legend-engine-xts-json/legend-engine-xt-json-javaPlatformBinding-pure/pom.xml @@ -245,5 +245,16 @@ junit junit + + org.finos.legend.pure + legend-pure-m3-core + test-jar + test + + + org.finos.legend.pure + legend-pure-m2-dsl-diagram-grammar + test + - \ No newline at end of file + diff --git a/legend-engine-xts-json/legend-engine-xt-json-javaPlatformBinding-pure/src/test/java/org/finos/legend/engine/pure/code/core/json/binding/TestCoreExternalFormatJsonJavaPlatformBindingCompiledStateIntegrity.java b/legend-engine-xts-json/legend-engine-xt-json-javaPlatformBinding-pure/src/test/java/org/finos/legend/engine/pure/code/core/json/binding/TestCoreExternalFormatJsonJavaPlatformBindingCompiledStateIntegrity.java new file mode 100644 index 00000000000..cf0efef0dd4 --- /dev/null +++ b/legend-engine-xts-json/legend-engine-xt-json-javaPlatformBinding-pure/src/test/java/org/finos/legend/engine/pure/code/core/json/binding/TestCoreExternalFormatJsonJavaPlatformBindingCompiledStateIntegrity.java @@ -0,0 +1,38 @@ +// Copyright 2024 Goldman Sachs +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.finos.legend.engine.pure.code.core.json.binding; + +import org.finos.legend.pure.m3.tests.AbstractCompiledStateIntegrityTest; +import org.junit.BeforeClass; +import org.junit.Ignore; +import org.junit.Test; + +public class TestCoreExternalFormatJsonJavaPlatformBindingCompiledStateIntegrity extends AbstractCompiledStateIntegrityTest +{ + @BeforeClass + public static void initialize() + { + initialize("core_external_format_json_java_platform_binding"); + } + + @Test + @Ignore + @Override + public void testReferenceUsages() + { + // TODO fix this test + super.testReferenceUsages(); + } +} diff --git a/legend-engine-xts-json/legend-engine-xt-json-pure/pom.xml b/legend-engine-xts-json/legend-engine-xt-json-pure/pom.xml index 586d165c43e..97bc4b01f52 100644 --- a/legend-engine-xts-json/legend-engine-xt-json-pure/pom.xml +++ b/legend-engine-xts-json/legend-engine-xt-json-pure/pom.xml @@ -219,14 +219,26 @@ org.eclipse.collections eclipse-collections-api + - org.finos.legend.engine - legend-engine-language-pure-compiler + junit + junit + + + org.finos.legend.pure + legend-pure-m3-core + test-jar test - junit - junit + org.finos.legend.pure + legend-pure-m2-dsl-diagram-grammar + test + + + org.finos.legend.engine + legend-engine-language-pure-compiler + test - \ No newline at end of file + diff --git a/legend-engine-xts-json/legend-engine-xt-json-pure/src/test/java/org/finos/legend/engine/pure/code/core/json/TestCoreExternalFormatJsonCompiledStateIntegrity.java b/legend-engine-xts-json/legend-engine-xt-json-pure/src/test/java/org/finos/legend/engine/pure/code/core/json/TestCoreExternalFormatJsonCompiledStateIntegrity.java new file mode 100644 index 00000000000..b7bbaa26cce --- /dev/null +++ b/legend-engine-xts-json/legend-engine-xt-json-pure/src/test/java/org/finos/legend/engine/pure/code/core/json/TestCoreExternalFormatJsonCompiledStateIntegrity.java @@ -0,0 +1,38 @@ +// Copyright 2024 Goldman Sachs +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.finos.legend.engine.pure.code.core.json; + +import org.finos.legend.pure.m3.tests.AbstractCompiledStateIntegrityTest; +import org.junit.BeforeClass; +import org.junit.Ignore; +import org.junit.Test; + +public class TestCoreExternalFormatJsonCompiledStateIntegrity extends AbstractCompiledStateIntegrityTest +{ + @BeforeClass + public static void initialize() + { + initialize("core_external_format_json"); + } + + @Test + @Ignore + @Override + public void testReferenceUsages() + { + // TODO fix this test + super.testReferenceUsages(); + } +} diff --git a/legend-engine-xts-text/legend-engine-xt-text-pure-metamodel/pom.xml b/legend-engine-xts-text/legend-engine-xt-text-pure-metamodel/pom.xml index 4ecc3f7f7ea..d9ba8168ea2 100644 --- a/legend-engine-xts-text/legend-engine-xt-text-pure-metamodel/pom.xml +++ b/legend-engine-xts-text/legend-engine-xt-text-pure-metamodel/pom.xml @@ -102,5 +102,18 @@ org.eclipse.collections eclipse-collections-api + + + + junit + junit + + + org.finos.legend.pure + legend-pure-m3-core + test-jar + test + + diff --git a/legend-engine-xts-text/legend-engine-xt-text-pure-metamodel/src/test/java/org/finos/legend/engine/pure/code/core/text/TestCoreTextMetamodelCompiledStateIntegrity.java b/legend-engine-xts-text/legend-engine-xt-text-pure-metamodel/src/test/java/org/finos/legend/engine/pure/code/core/text/TestCoreTextMetamodelCompiledStateIntegrity.java new file mode 100644 index 00000000000..f5c7b8fd86f --- /dev/null +++ b/legend-engine-xts-text/legend-engine-xt-text-pure-metamodel/src/test/java/org/finos/legend/engine/pure/code/core/text/TestCoreTextMetamodelCompiledStateIntegrity.java @@ -0,0 +1,27 @@ +// Copyright 2024 Goldman Sachs +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.finos.legend.engine.pure.code.core.text; + +import org.finos.legend.pure.m3.tests.AbstractCompiledStateIntegrityTest; +import org.junit.BeforeClass; + +public class TestCoreTextMetamodelCompiledStateIntegrity extends AbstractCompiledStateIntegrityTest +{ + @BeforeClass + public static void initialize() + { + initialize("core_text_metamodel"); + } +} diff --git a/legend-engine-xts-xml/legend-engine-xt-xml-javaPlatformBinding-pure/pom.xml b/legend-engine-xts-xml/legend-engine-xt-xml-javaPlatformBinding-pure/pom.xml index 00e4b36c181..73a1fbc4552 100644 --- a/legend-engine-xts-xml/legend-engine-xt-xml-javaPlatformBinding-pure/pom.xml +++ b/legend-engine-xts-xml/legend-engine-xt-xml-javaPlatformBinding-pure/pom.xml @@ -239,12 +239,22 @@ junit junit + + org.finos.legend.pure + legend-pure-m3-core + test-jar + test + + + org.finos.legend.pure + legend-pure-m2-dsl-diagram-grammar + test + org.finos.legend.engine legend-engine-language-pure-compiler test - - \ No newline at end of file + diff --git a/legend-engine-xts-xml/legend-engine-xt-xml-javaPlatformBinding-pure/src/test/java/org/finos/legend/engine/pure/code/core/xml/binding/TestCoreExternalFormatXmlJavaPlatformBindingCompiledStateIntegrity.java b/legend-engine-xts-xml/legend-engine-xt-xml-javaPlatformBinding-pure/src/test/java/org/finos/legend/engine/pure/code/core/xml/binding/TestCoreExternalFormatXmlJavaPlatformBindingCompiledStateIntegrity.java new file mode 100644 index 00000000000..ffd4bd79a73 --- /dev/null +++ b/legend-engine-xts-xml/legend-engine-xt-xml-javaPlatformBinding-pure/src/test/java/org/finos/legend/engine/pure/code/core/xml/binding/TestCoreExternalFormatXmlJavaPlatformBindingCompiledStateIntegrity.java @@ -0,0 +1,38 @@ +// Copyright 2024 Goldman Sachs +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.finos.legend.engine.pure.code.core.xml.binding; + +import org.finos.legend.pure.m3.tests.AbstractCompiledStateIntegrityTest; +import org.junit.BeforeClass; +import org.junit.Ignore; +import org.junit.Test; + +public class TestCoreExternalFormatXmlJavaPlatformBindingCompiledStateIntegrity extends AbstractCompiledStateIntegrityTest +{ + @BeforeClass + public static void initialize() + { + initialize("core_external_format_xml_java_platform_binding"); + } + + @Test + @Ignore + @Override + public void testReferenceUsages() + { + // TODO fix this test + super.testReferenceUsages(); + } +} diff --git a/legend-engine-xts-xml/legend-engine-xt-xml-pure/pom.xml b/legend-engine-xts-xml/legend-engine-xt-xml-pure/pom.xml index 658eed72b2f..eab5b4bc561 100644 --- a/legend-engine-xts-xml/legend-engine-xt-xml-pure/pom.xml +++ b/legend-engine-xts-xml/legend-engine-xt-xml-pure/pom.xml @@ -192,6 +192,17 @@ junit junit + + org.finos.legend.pure + legend-pure-m3-core + test-jar + test + + + org.finos.legend.pure + legend-pure-m2-dsl-diagram-grammar + test + org.finos.legend.engine legend-engine-language-pure-compiler diff --git a/legend-engine-xts-xml/legend-engine-xt-xml-pure/src/test/java/org/finos/legend/pure/code/core/external/format/xml/TestCoreExternalFormatXmlCompiledStateIntegrity.java b/legend-engine-xts-xml/legend-engine-xt-xml-pure/src/test/java/org/finos/legend/pure/code/core/external/format/xml/TestCoreExternalFormatXmlCompiledStateIntegrity.java new file mode 100644 index 00000000000..410dc09093a --- /dev/null +++ b/legend-engine-xts-xml/legend-engine-xt-xml-pure/src/test/java/org/finos/legend/pure/code/core/external/format/xml/TestCoreExternalFormatXmlCompiledStateIntegrity.java @@ -0,0 +1,38 @@ +// Copyright 2024 Goldman Sachs +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.finos.legend.pure.code.core.external.format.xml; + +import org.finos.legend.pure.m3.tests.AbstractCompiledStateIntegrityTest; +import org.junit.BeforeClass; +import org.junit.Ignore; +import org.junit.Test; + +public class TestCoreExternalFormatXmlCompiledStateIntegrity extends AbstractCompiledStateIntegrityTest +{ + @BeforeClass + public static void initialize() + { + initialize("core_external_format_xml"); + } + + @Test + @Ignore + @Override + public void testReferenceUsages() + { + // TODO fix this test + super.testReferenceUsages(); + } +}