Skip to content

Commit 4304973

Browse files
committed
fix failed test case
1 parent 9ab1827 commit 4304973

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

core/esmf-aspect-model-document-generators/src/test/java/org/eclipse/esmf/aspectmodel/generator/docu/AspectModelDocumentationGeneratorTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,12 @@ public void testAspectWithQuantifiableWithoutUnit( final KnownVersion metaModelV
198198
@MethodSource( "allVersions" )
199199
public void testAspectWithConstraintWithSeeAttribute( final KnownVersion metaModelVersion ) throws IOException {
200200
final String documentation = generateHtmlDocumentation( TestAspect.ASPECT_WITH_CONSTRAINT_WITH_SEE_ATTRIBUTE, metaModelVersion );
201+
assertThat( documentation ).contains(
202+
"<h3 id=\"org-eclipse-esmf-test-AspectWithConstraintWithSeeAttribute-org-eclipse-esmf-test-testPropertyTwo-property\">testPropertyTwo</h3>" );
203+
assertThat( documentation ).contains(
204+
"<div class=\"table-cell pb-3 col-span-2\">Trait</div>" );
205+
assertThat( documentation ).contains(
206+
"<li>http://example.com/omp2</li>" );
201207
}
202208

203209
private String generateHtmlDocumentation( final TestAspect model, final KnownVersion testedVersion ) throws IOException {

core/esmf-test-aspect-models/src/main/resources/valid/samm_1_0_0/org.eclipse.esmf.test/1.0.0/AspectWithCharacteristicWithSeeAttribute.ttl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
samm:dataType xsd:string .
3636

3737
:TestCharacteristicTwo a samm:Characteristic ;
38-
samm:name "TestCharacteristicTwo" ;
3938
samm:preferredName "Test Characteristic Two"@en ;
4039
samm:description "Test Characteristic Two"@en ;
4140
samm:see <http://example.com/> ;

core/esmf-test-aspect-models/src/main/resources/valid/samm_1_0_0/org.eclipse.esmf.test/1.0.0/AspectWithConstraintWithSeeAttribute.ttl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
] ;
5252
samm-c:baseCharacteristic :TestCharacteristicTwo .
5353
:TestCharacteristicTwo a samm:Characteristic;
54-
samm:name "TestCharacteristicTwo";
5554
samm:preferredName "Test Characteristic Two"@en;
5655
samm:description "Test Characteristic Two"@en;
5756
samm:dataType xsd:string;

core/esmf-test-aspect-models/src/main/resources/valid/samm_2_0_0/org.eclipse.esmf.test/1.0.0/AspectWithConstraintWithSeeAttribute.ttl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
] ;
4646
samm-c:baseCharacteristic :TestCharacteristicTwo .
4747
:TestCharacteristicTwo a samm:Characteristic;
48-
samm:name "TestCharacteristicTwo";
4948
samm:preferredName "Test Characteristic Two"@en;
5049
samm:description "Test Characteristic Two"@en;
5150
samm:dataType xsd:string;

0 commit comments

Comments
 (0)