Skip to content

Commit 8b2686b

Browse files
committed
Add migration test for legacy BAMM 1.0.0 models.
1 parent 18021c3 commit 8b2686b

File tree

2 files changed

+27
-2
lines changed

2 files changed

+27
-2
lines changed

core/esmf-aspect-model-resolver/src/test/java/org/eclipse/esmf/aspectmodel/resolver/AspectModelResolverTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
import org.eclipse.esmf.aspectmodel.vocabulary.SAMM;
3333
import org.eclipse.esmf.samm.KnownVersion;
3434
import org.eclipse.esmf.test.MetaModelVersions;
35-
import org.junit.jupiter.api.Test;
3635
import org.junit.jupiter.params.ParameterizedTest;
3736
import org.junit.jupiter.params.provider.MethodSource;
3837

@@ -66,7 +65,8 @@ public void testLoadDataModelExpectSuccess( final KnownVersion metaModelVersion
6665
.isNotEmpty();
6766
}
6867

69-
@Test
68+
@ParameterizedTest
69+
@MethodSource( value = "allVersions" )
7070
public void testLoadLegacyBammModelExpectSuccess() throws URISyntaxException {
7171
final KnownVersion metaModelVersion = KnownVersion.getLatest();
7272
final File aspectModelsRootDirectory = new File(
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Copyright (c) 2023 Robert Bosch Manufacturing Solutions GmbH
2+
#
3+
# See the AUTHORS file(s) distributed with this work for additional
4+
# information regarding authorship.
5+
#
6+
# This Source Code Form is subject to the terms of the Mozilla Public
7+
# License, v. 2.0. If a copy of the MPL was not distributed with this
8+
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
9+
#
10+
# SPDX-License-Identifier: MPL-2.0
11+
12+
@prefix bamm: <urn:bamm:io.openmanufacturing:meta-model:1.0.0#> .
13+
@prefix bamm-c: <urn:bamm:io.openmanufacturing:characteristic:1.0.0#> .
14+
@prefix bamm-e: <urn:bamm:io.openmanufacturing:entity:1.0.0#> .
15+
@prefix : <urn:bamm:org.eclipse.esmf.test:2.0.0#> .
16+
@prefix unit: <urn:bamm:io.openmanufacturing:unit:1.0.0#> .
17+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
18+
19+
:BammTest a bamm:Aspect ;
20+
bamm:preferredName "BAMM Test"@en ;
21+
bamm:properties ( :property ) ;
22+
bamm:operations ( ) .
23+
24+
:property a bamm:Property ;
25+
bamm:characteristic bamm-c:Text .

0 commit comments

Comments
 (0)