Skip to content

Commit 9a8203d

Browse files
committed
Minimize test and fix test
1 parent d089df8 commit 9a8203d

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,11 +191,11 @@ void testResolutionMissingModelElementExpectFailure() throws Throwable {
191191
@Test
192192
void getExceptionWhileLoadingModelWithTwoAspects() {
193193
assertThatThrownBy( () -> {
194-
TestResources.load( InvalidTestAspect.INVALID_UUID_ASPECT_WITH_TWO_ASPECTS );
194+
TestResources.load( InvalidTestAspect.INVALID_ASPECT_WITH_TWO_ASPECTS );
195195
} )
196196
.isInstanceOf( AspectLoadingException.class )
197197
.hasMessageContaining(
198-
"Aspect model file testmodel:invalid/org.eclipse.esmf.test/1.0.0/InvalidUuidAspectWithTwoAspects.ttl contains 2 "
198+
"Aspect model file testmodel:invalid/org.eclipse.esmf.test/1.0.0/InvalidAspectWithTwoAspects.ttl contains 2 "
199199
+ "aspects, but may only contain one." );
200200
}
201201
}

core/esmf-test-aspect-models/src/main/java/org/eclipse/esmf/test/InvalidTestAspect.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public enum InvalidTestAspect implements TestModel {
3131
RANGE_CONSTRAINT_WITH_WRONG_TYPE,
3232
MODEL_WITH_CYCLES,
3333

34-
INVALID_UUID_ASPECT_WITH_TWO_ASPECTS;
34+
INVALID_ASPECT_WITH_TWO_ASPECTS;
3535

3636
@Override
3737
public String getName() {
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515
@prefix unit: <urn:samm:org.eclipse.esmf.samm:unit:2.1.0#>.
1616
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>.
1717

18-
:Uuid2 a samm:Aspect;
19-
samm:preferredName "Shared Aspect for UUIDs v4"@en;
18+
:Aspect1 a samm:Aspect;
19+
samm:preferredName "Test Aspect1"@en;
2020
samm:properties ();
2121
samm:operations ();
2222
samm:events ().
2323

24-
:Uuid3 a samm:Aspect;
25-
samm:preferredName "Shared Aspect for UUIDs v4"@en;
24+
:Aspect2 a samm:Aspect;
25+
samm:preferredName "Test Aspect2"@en;
2626
samm:properties ();
2727
samm:operations ();
2828
samm:events ().

0 commit comments

Comments
 (0)