From a580305480f533fd094616515546dcacd555e727 Mon Sep 17 00:00:00 2001 From: Simon Haug Date: Mon, 25 Sep 2023 16:03:55 +0200 Subject: [PATCH] SignatureConceptTest.testCreateSignatureConcept_PCM_primitiveReturnType --- .../pcmumlclass/tests/helper/PcmModelEqualityHelper.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/tools.vitruv.applications.pcmumlclass.tests/src/tools/vitruv/applications/pcmumlclass/tests/helper/PcmModelEqualityHelper.java b/tests/tools.vitruv.applications.pcmumlclass.tests/src/tools/vitruv/applications/pcmumlclass/tests/helper/PcmModelEqualityHelper.java index 9dabf68e9..f734cde01 100644 --- a/tests/tools.vitruv.applications.pcmumlclass.tests/src/tools/vitruv/applications/pcmumlclass/tests/helper/PcmModelEqualityHelper.java +++ b/tests/tools.vitruv.applications.pcmumlclass.tests/src/tools/vitruv/applications/pcmumlclass/tests/helper/PcmModelEqualityHelper.java @@ -20,9 +20,9 @@ public PcmModelEqualityHelper() { @Override protected boolean haveEqualFeature(EObject eObject1, EObject eObject2, EStructuralFeature feature) { - if (eObject1.eGet(feature) instanceof PrimitiveDataType dataType1 - && eObject2.eGet(feature) instanceof PrimitiveDataType dataType2) { - return dataType1.getType() == dataType2.getType(); + if (eObject1.eGet(feature) instanceof PrimitiveDataType + && eObject2.eGet(feature) instanceof PrimitiveDataType) { + return ((PrimitiveDataType)eObject1.eGet(feature)).getType() == ((PrimitiveDataType)eObject2.eGet(feature)).getType(); } return super.haveEqualFeature(eObject1, eObject2, feature);