From e33650e60959cee599c00ae11d53d69640654968 Mon Sep 17 00:00:00 2001 From: sean-borland-gs Date: Thu, 9 Jan 2025 04:00:25 -0500 Subject: [PATCH] Adding compiled state integrity tests 1 (#3338) --- .../legend-engine-xt-arrow-pure/pom.xml | 11 ++++++ ...rnalFormatArrowCompiledStateIntegrity.java | 35 ++++++++++++++++++ .../pom.xml | 17 +++++++++ ...eAuthenticationCompiledStateIntegrity.java | 37 +++++++++++++++++++ .../legend-engine-xt-avro-pure/pom.xml | 22 +++++++++++ ...ernalFormatAvroCompiledStateIntegrity.java | 36 ++++++++++++++++++ .../legend-engine-xt-changetoken-pure/pom.xml | 13 +++++++ ...PureChangeTokenCompiledStateIntegrity.java | 35 ++++++++++++++++++ .../legend-engine-xt-flatdata-pure/pom.xml | 13 +++++++ ...xternalFlatDataCompiledStateIntegrity.java | 35 ++++++++++++++++++ .../pom.xml | 17 +++++++++ ...nctionActivatorCompiledStateIntegrity.java | 36 ++++++++++++++++++ .../pom.xml | 17 +++++++++ ...tCoreGenerationCompiledStateIntegrity.java | 27 ++++++++++++++ .../legend-engine-xt-graphQL-pure/pom.xml | 12 +++++- ...nalQueryGraphqlCompiledStateIntegrity.java | 35 ++++++++++++++++++ .../legend-engine-xt-haskell-pure/pom.xml | 18 +++++++++ ...LanguageHaskellCompiledStateIntegrity.java | 36 ++++++++++++++++++ .../pom.xml | 18 +++++++++ ...lationalMongodbCompiledStateIntegrity.java | 36 ++++++++++++++++++ .../pom.xml | 11 ++++++ ...RelationalTrinoCompiledStateIntegrity.java | 36 ++++++++++++++++++ 22 files changed, 552 insertions(+), 1 deletion(-) create mode 100644 legend-engine-xts-arrow/legend-engine-xt-arrow-pure/src/test/java/org/finos/legend/pure/code/core/TestCoreExternalFormatArrowCompiledStateIntegrity.java create mode 100644 legend-engine-xts-authentication/legend-engine-xt-authentication-pure/src/test/java/org/finos/legend/pure/code/core/TestCoreAuthenticationCompiledStateIntegrity.java create mode 100644 legend-engine-xts-avro/legend-engine-xt-avro-pure/src/test/java/org/finos/legend/engine/pure/code/core/TestCoreExternalFormatAvroCompiledStateIntegrity.java create mode 100644 legend-engine-xts-changetoken/legend-engine-xt-changetoken-pure/src/test/java/org/finos/legend/engine/changetoken/code/TestCorePureChangeTokenCompiledStateIntegrity.java create mode 100644 legend-engine-xts-flatdata/legend-engine-xt-flatdata-pure/src/test/java/org/finos/legend/pure/code/core/TestCoreExternalFlatDataCompiledStateIntegrity.java create mode 100644 legend-engine-xts-functionActivator/legend-engine-xt-functionActivator-pure/src/test/java/org/finos/legend/engine/code/core/TestCoreFunctionActivatorCompiledStateIntegrity.java create mode 100644 legend-engine-xts-generation/legend-engine-language-pure-dsl-generation-pure/src/test/java/org/finos/legend/engine/pure/code/core/TestCoreGenerationCompiledStateIntegrity.java create mode 100644 legend-engine-xts-graphQL/legend-engine-xt-graphQL-pure/src/test/java/org/finos/legend/engine/code/core/TestCoreExternalQueryGraphqlCompiledStateIntegrity.java create mode 100644 legend-engine-xts-haskell/legend-engine-xt-haskell-pure/src/test/java/org/finos/legend/engine/code/core/TestCoreExternalLanguageHaskellCompiledStateIntegrity.java create mode 100644 legend-engine-xts-mongodb/legend-engine-xt-nonrelationalStore-mongodb-pure/src/test/java/org/finos/legend/pure/code/core/TestCoreNonRelationalMongodbCompiledStateIntegrity.java create mode 100644 legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-dbExtension/legend-engine-xt-relationalStore-trino/legend-engine-xt-relationalStore-trino-pure/src/test/java/org/finos/legend/pure/code/core/TestCoreRelationalTrinoCompiledStateIntegrity.java diff --git a/legend-engine-xts-arrow/legend-engine-xt-arrow-pure/pom.xml b/legend-engine-xts-arrow/legend-engine-xt-arrow-pure/pom.xml index ce7dca526b7..f357394ef78 100644 --- a/legend-engine-xts-arrow/legend-engine-xt-arrow-pure/pom.xml +++ b/legend-engine-xts-arrow/legend-engine-xt-arrow-pure/pom.xml @@ -146,6 +146,17 @@ legend-engine-language-pure-compiler test + + 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-arrow/legend-engine-xt-arrow-pure/src/test/java/org/finos/legend/pure/code/core/TestCoreExternalFormatArrowCompiledStateIntegrity.java b/legend-engine-xts-arrow/legend-engine-xt-arrow-pure/src/test/java/org/finos/legend/pure/code/core/TestCoreExternalFormatArrowCompiledStateIntegrity.java new file mode 100644 index 00000000000..943c419729e --- /dev/null +++ b/legend-engine-xts-arrow/legend-engine-xt-arrow-pure/src/test/java/org/finos/legend/pure/code/core/TestCoreExternalFormatArrowCompiledStateIntegrity.java @@ -0,0 +1,35 @@ +// Copyright 2025 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; +import org.junit.Test; + +public class TestCoreExternalFormatArrowCompiledStateIntegrity extends AbstractCompiledStateIntegrityTest +{ + @BeforeClass + public static void initialize() + { + initialize("core_external_format_arrow"); + } + + @Test(expected = AssertionError.class) + @Override + public void testReferenceUsages() + { + super.testReferenceUsages(); + } +} \ No newline at end of file diff --git a/legend-engine-xts-authentication/legend-engine-xt-authentication-pure/pom.xml b/legend-engine-xts-authentication/legend-engine-xt-authentication-pure/pom.xml index 93dee48dfe3..ba45aaa3034 100644 --- a/legend-engine-xts-authentication/legend-engine-xt-authentication-pure/pom.xml +++ b/legend-engine-xts-authentication/legend-engine-xt-authentication-pure/pom.xml @@ -154,6 +154,23 @@ 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-authentication/legend-engine-xt-authentication-pure/src/test/java/org/finos/legend/pure/code/core/TestCoreAuthenticationCompiledStateIntegrity.java b/legend-engine-xts-authentication/legend-engine-xt-authentication-pure/src/test/java/org/finos/legend/pure/code/core/TestCoreAuthenticationCompiledStateIntegrity.java new file mode 100644 index 00000000000..1576a74dc44 --- /dev/null +++ b/legend-engine-xts-authentication/legend-engine-xt-authentication-pure/src/test/java/org/finos/legend/pure/code/core/TestCoreAuthenticationCompiledStateIntegrity.java @@ -0,0 +1,37 @@ +// Copyright 2025 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; +import org.junit.Ignore; +import org.junit.Test; + +public class TestCoreAuthenticationCompiledStateIntegrity extends AbstractCompiledStateIntegrityTest +{ + @BeforeClass + public static void initialize() + { + initialize("core_authentication"); + } + + @Test(expected = AssertionError.class) + @Ignore + @Override + public void testReferenceUsages() + { + super.testReferenceUsages(); + } +} \ No newline at end of file diff --git a/legend-engine-xts-avro/legend-engine-xt-avro-pure/pom.xml b/legend-engine-xts-avro/legend-engine-xt-avro-pure/pom.xml index 6bd9cb20217..443cebff77d 100644 --- a/legend-engine-xts-avro/legend-engine-xt-avro-pure/pom.xml +++ b/legend-engine-xts-avro/legend-engine-xt-avro-pure/pom.xml @@ -191,6 +191,28 @@ 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-avro/legend-engine-xt-avro-pure/src/test/java/org/finos/legend/engine/pure/code/core/TestCoreExternalFormatAvroCompiledStateIntegrity.java b/legend-engine-xts-avro/legend-engine-xt-avro-pure/src/test/java/org/finos/legend/engine/pure/code/core/TestCoreExternalFormatAvroCompiledStateIntegrity.java new file mode 100644 index 00000000000..30f7e3e0b85 --- /dev/null +++ b/legend-engine-xts-avro/legend-engine-xt-avro-pure/src/test/java/org/finos/legend/engine/pure/code/core/TestCoreExternalFormatAvroCompiledStateIntegrity.java @@ -0,0 +1,36 @@ +// Copyright 2025 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 TestCoreExternalFormatAvroCompiledStateIntegrity extends AbstractCompiledStateIntegrityTest +{ + @BeforeClass + public static void initialize() + { + initialize("core_external_format_avro"); + } + + @Test(expected = AssertionError.class) + @Override + public void testReferenceUsages() + { + super.testReferenceUsages(); + } +} diff --git a/legend-engine-xts-changetoken/legend-engine-xt-changetoken-pure/pom.xml b/legend-engine-xts-changetoken/legend-engine-xt-changetoken-pure/pom.xml index 6a6c0298f58..61142389ae0 100644 --- a/legend-engine-xts-changetoken/legend-engine-xt-changetoken-pure/pom.xml +++ b/legend-engine-xts-changetoken/legend-engine-xt-changetoken-pure/pom.xml @@ -189,9 +189,22 @@ 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-changetoken/legend-engine-xt-changetoken-pure/src/test/java/org/finos/legend/engine/changetoken/code/TestCorePureChangeTokenCompiledStateIntegrity.java b/legend-engine-xts-changetoken/legend-engine-xt-changetoken-pure/src/test/java/org/finos/legend/engine/changetoken/code/TestCorePureChangeTokenCompiledStateIntegrity.java new file mode 100644 index 00000000000..16a504dc985 --- /dev/null +++ b/legend-engine-xts-changetoken/legend-engine-xt-changetoken-pure/src/test/java/org/finos/legend/engine/changetoken/code/TestCorePureChangeTokenCompiledStateIntegrity.java @@ -0,0 +1,35 @@ +// Copyright 2025 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.changetoken.code; + +import org.finos.legend.pure.m3.tests.AbstractCompiledStateIntegrityTest; +import org.junit.BeforeClass; +import org.junit.Test; + +public class TestCorePureChangeTokenCompiledStateIntegrity extends AbstractCompiledStateIntegrityTest +{ + @BeforeClass + public static void initialize() + { + initialize("core_pure_changetoken"); + } + + @Test(expected = AssertionError.class) + @Override + public void testReferenceUsages() + { + super.testReferenceUsages(); + } +} \ No newline at end of file diff --git a/legend-engine-xts-flatdata/legend-engine-xt-flatdata-pure/pom.xml b/legend-engine-xts-flatdata/legend-engine-xt-flatdata-pure/pom.xml index 50293d2b163..2b7061220a5 100644 --- a/legend-engine-xts-flatdata/legend-engine-xt-flatdata-pure/pom.xml +++ b/legend-engine-xts-flatdata/legend-engine-xt-flatdata-pure/pom.xml @@ -197,9 +197,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 + + diff --git a/legend-engine-xts-flatdata/legend-engine-xt-flatdata-pure/src/test/java/org/finos/legend/pure/code/core/TestCoreExternalFlatDataCompiledStateIntegrity.java b/legend-engine-xts-flatdata/legend-engine-xt-flatdata-pure/src/test/java/org/finos/legend/pure/code/core/TestCoreExternalFlatDataCompiledStateIntegrity.java new file mode 100644 index 00000000000..dd3c9ba39d9 --- /dev/null +++ b/legend-engine-xts-flatdata/legend-engine-xt-flatdata-pure/src/test/java/org/finos/legend/pure/code/core/TestCoreExternalFlatDataCompiledStateIntegrity.java @@ -0,0 +1,35 @@ +// Copyright 2025 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; +import org.junit.Test; + +public class TestCoreExternalFlatDataCompiledStateIntegrity extends AbstractCompiledStateIntegrityTest +{ + @BeforeClass + public static void initialize() + { + initialize("core_external_format_flatdata"); + } + + @Test(expected = AssertionError.class) + @Override + public void testReferenceUsages() + { + super.testReferenceUsages(); + } +} \ No newline at end of file diff --git a/legend-engine-xts-functionActivator/legend-engine-xt-functionActivator-pure/pom.xml b/legend-engine-xts-functionActivator/legend-engine-xt-functionActivator-pure/pom.xml index 4f8dd80306a..fe7d1416b50 100644 --- a/legend-engine-xts-functionActivator/legend-engine-xt-functionActivator-pure/pom.xml +++ b/legend-engine-xts-functionActivator/legend-engine-xt-functionActivator-pure/pom.xml @@ -186,5 +186,22 @@ eclipse-collections + + + 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-functionActivator/legend-engine-xt-functionActivator-pure/src/test/java/org/finos/legend/engine/code/core/TestCoreFunctionActivatorCompiledStateIntegrity.java b/legend-engine-xts-functionActivator/legend-engine-xt-functionActivator-pure/src/test/java/org/finos/legend/engine/code/core/TestCoreFunctionActivatorCompiledStateIntegrity.java new file mode 100644 index 00000000000..00542a83f9b --- /dev/null +++ b/legend-engine-xts-functionActivator/legend-engine-xt-functionActivator-pure/src/test/java/org/finos/legend/engine/code/core/TestCoreFunctionActivatorCompiledStateIntegrity.java @@ -0,0 +1,36 @@ +// Copyright 2025 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.code.core; + +import org.finos.legend.pure.m3.tests.AbstractCompiledStateIntegrityTest; +import org.junit.BeforeClass; +import org.junit.Ignore; +import org.junit.Test; + +public class TestCoreFunctionActivatorCompiledStateIntegrity extends AbstractCompiledStateIntegrityTest +{ + @BeforeClass + public static void initialize() + { + initialize("core_function_activator"); + } + + @Test(expected = AssertionError.class) + @Override + public void testReferenceUsages() + { + super.testReferenceUsages(); + } +} \ No newline at end of file diff --git a/legend-engine-xts-generation/legend-engine-language-pure-dsl-generation-pure/pom.xml b/legend-engine-xts-generation/legend-engine-language-pure-dsl-generation-pure/pom.xml index 50e94a18032..4a7741ba580 100644 --- a/legend-engine-xts-generation/legend-engine-language-pure-dsl-generation-pure/pom.xml +++ b/legend-engine-xts-generation/legend-engine-language-pure-dsl-generation-pure/pom.xml @@ -176,5 +176,22 @@ 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-generation/legend-engine-language-pure-dsl-generation-pure/src/test/java/org/finos/legend/engine/pure/code/core/TestCoreGenerationCompiledStateIntegrity.java b/legend-engine-xts-generation/legend-engine-language-pure-dsl-generation-pure/src/test/java/org/finos/legend/engine/pure/code/core/TestCoreGenerationCompiledStateIntegrity.java new file mode 100644 index 00000000000..e17245d6e2c --- /dev/null +++ b/legend-engine-xts-generation/legend-engine-language-pure-dsl-generation-pure/src/test/java/org/finos/legend/engine/pure/code/core/TestCoreGenerationCompiledStateIntegrity.java @@ -0,0 +1,27 @@ +// Copyright 2025 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; + +public class TestCoreGenerationCompiledStateIntegrity extends AbstractCompiledStateIntegrityTest +{ + @BeforeClass + public static void initialize() + { + initialize("core_generation"); + } +} \ No newline at end of file diff --git a/legend-engine-xts-graphQL/legend-engine-xt-graphQL-pure/pom.xml b/legend-engine-xts-graphQL/legend-engine-xt-graphQL-pure/pom.xml index ff8b7545b04..ee7ed9f1ca0 100644 --- a/legend-engine-xts-graphQL/legend-engine-xt-graphQL-pure/pom.xml +++ b/legend-engine-xts-graphQL/legend-engine-xt-graphQL-pure/pom.xml @@ -298,7 +298,6 @@ legend-engine-xt-graphQL-compiler test - org.finos.legend.engine legend-engine-xt-graphQL-grammar-integration @@ -315,6 +314,17 @@ legend-engine-pure-runtime-java-extension-shared-functions-legendCompiler test + + 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-graphQL/legend-engine-xt-graphQL-pure/src/test/java/org/finos/legend/engine/code/core/TestCoreExternalQueryGraphqlCompiledStateIntegrity.java b/legend-engine-xts-graphQL/legend-engine-xt-graphQL-pure/src/test/java/org/finos/legend/engine/code/core/TestCoreExternalQueryGraphqlCompiledStateIntegrity.java new file mode 100644 index 00000000000..df608297c92 --- /dev/null +++ b/legend-engine-xts-graphQL/legend-engine-xt-graphQL-pure/src/test/java/org/finos/legend/engine/code/core/TestCoreExternalQueryGraphqlCompiledStateIntegrity.java @@ -0,0 +1,35 @@ +// Copyright 2025 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.code.core; + +import org.finos.legend.pure.m3.tests.AbstractCompiledStateIntegrityTest; +import org.junit.BeforeClass; +import org.junit.Test; + +public class TestCoreExternalQueryGraphqlCompiledStateIntegrity extends AbstractCompiledStateIntegrityTest +{ + @BeforeClass + public static void initialize() + { + initialize("core_external_query_graphql"); + } + + @Test(expected = AssertionError.class) + @Override + public void testReferenceUsages() + { + super.testReferenceUsages(); + } +} diff --git a/legend-engine-xts-haskell/legend-engine-xt-haskell-pure/pom.xml b/legend-engine-xts-haskell/legend-engine-xt-haskell-pure/pom.xml index 6fedf8d8bd2..911a60104da 100644 --- a/legend-engine-xts-haskell/legend-engine-xt-haskell-pure/pom.xml +++ b/legend-engine-xts-haskell/legend-engine-xt-haskell-pure/pom.xml @@ -161,6 +161,24 @@ 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 + + + \ No newline at end of file diff --git a/legend-engine-xts-haskell/legend-engine-xt-haskell-pure/src/test/java/org/finos/legend/engine/code/core/TestCoreExternalLanguageHaskellCompiledStateIntegrity.java b/legend-engine-xts-haskell/legend-engine-xt-haskell-pure/src/test/java/org/finos/legend/engine/code/core/TestCoreExternalLanguageHaskellCompiledStateIntegrity.java new file mode 100644 index 00000000000..00c3dc5e9cb --- /dev/null +++ b/legend-engine-xts-haskell/legend-engine-xt-haskell-pure/src/test/java/org/finos/legend/engine/code/core/TestCoreExternalLanguageHaskellCompiledStateIntegrity.java @@ -0,0 +1,36 @@ +// Copyright 2025 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.code.core; + +import org.finos.legend.pure.m3.tests.AbstractCompiledStateIntegrityTest; +import org.junit.BeforeClass; +import org.junit.Ignore; +import org.junit.Test; + +public class TestCoreExternalLanguageHaskellCompiledStateIntegrity extends AbstractCompiledStateIntegrityTest +{ + @BeforeClass + public static void initialize() + { + initialize("core_external_language_haskell"); + } + + @Test(expected = AssertionError.class) + @Override + public void testReferenceUsages() + { + super.testReferenceUsages(); + } +} \ No newline at end of file diff --git a/legend-engine-xts-mongodb/legend-engine-xt-nonrelationalStore-mongodb-pure/pom.xml b/legend-engine-xts-mongodb/legend-engine-xt-nonrelationalStore-mongodb-pure/pom.xml index 704131dd5cd..67c33562692 100644 --- a/legend-engine-xts-mongodb/legend-engine-xt-nonrelationalStore-mongodb-pure/pom.xml +++ b/legend-engine-xts-mongodb/legend-engine-xt-nonrelationalStore-mongodb-pure/pom.xml @@ -224,6 +224,24 @@ 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-mongodb/legend-engine-xt-nonrelationalStore-mongodb-pure/src/test/java/org/finos/legend/pure/code/core/TestCoreNonRelationalMongodbCompiledStateIntegrity.java b/legend-engine-xts-mongodb/legend-engine-xt-nonrelationalStore-mongodb-pure/src/test/java/org/finos/legend/pure/code/core/TestCoreNonRelationalMongodbCompiledStateIntegrity.java new file mode 100644 index 00000000000..74de0ec1f70 --- /dev/null +++ b/legend-engine-xts-mongodb/legend-engine-xt-nonrelationalStore-mongodb-pure/src/test/java/org/finos/legend/pure/code/core/TestCoreNonRelationalMongodbCompiledStateIntegrity.java @@ -0,0 +1,36 @@ +// Copyright 2025 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; +import org.junit.Ignore; +import org.junit.Test; + +public class TestCoreNonRelationalMongodbCompiledStateIntegrity extends AbstractCompiledStateIntegrityTest +{ + @BeforeClass + public static void initialize() + { + initialize("core_nonrelational_mongodb"); + } + + @Test(expected = AssertionError.class) + @Override + public void testReferenceUsages() + { + super.testReferenceUsages(); + } +} \ No newline at end of file diff --git a/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-dbExtension/legend-engine-xt-relationalStore-trino/legend-engine-xt-relationalStore-trino-pure/pom.xml b/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-dbExtension/legend-engine-xt-relationalStore-trino/legend-engine-xt-relationalStore-trino-pure/pom.xml index c6aa0743d53..facc8e1f84d 100644 --- a/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-dbExtension/legend-engine-xt-relationalStore-trino/legend-engine-xt-relationalStore-trino-pure/pom.xml +++ b/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-dbExtension/legend-engine-xt-relationalStore-trino/legend-engine-xt-relationalStore-trino-pure/pom.xml @@ -235,6 +235,17 @@ test + + 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-relationalStore/legend-engine-xt-relationalStore-dbExtension/legend-engine-xt-relationalStore-trino/legend-engine-xt-relationalStore-trino-pure/src/test/java/org/finos/legend/pure/code/core/TestCoreRelationalTrinoCompiledStateIntegrity.java b/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-dbExtension/legend-engine-xt-relationalStore-trino/legend-engine-xt-relationalStore-trino-pure/src/test/java/org/finos/legend/pure/code/core/TestCoreRelationalTrinoCompiledStateIntegrity.java new file mode 100644 index 00000000000..321b168cff9 --- /dev/null +++ b/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-dbExtension/legend-engine-xt-relationalStore-trino/legend-engine-xt-relationalStore-trino-pure/src/test/java/org/finos/legend/pure/code/core/TestCoreRelationalTrinoCompiledStateIntegrity.java @@ -0,0 +1,36 @@ +// Copyright 2025 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; +import org.junit.Ignore; +import org.junit.Test; + +public class TestCoreRelationalTrinoCompiledStateIntegrity extends AbstractCompiledStateIntegrityTest +{ + @BeforeClass + public static void initialize() + { + initialize("core_relational_trino"); + } + + @Test(expected = AssertionError.class) + @Override + public void testReferenceUsages() + { + super.testReferenceUsages(); + } +}