From 8c267ea6a8c5f943d3afdaac2691d8de6bf89b45 Mon Sep 17 00:00:00 2001 From: CyrilFerlicot Date: Mon, 3 Jun 2024 16:55:11 +0200 Subject: [PATCH] Add test --- .../FamixReferenceModelImporterTest.class.st | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Moose-SmalltalkImporter-Core-Tests/FamixReferenceModelImporterTest.class.st b/src/Moose-SmalltalkImporter-Core-Tests/FamixReferenceModelImporterTest.class.st index 297fb0dc..ed62c4c1 100644 --- a/src/Moose-SmalltalkImporter-Core-Tests/FamixReferenceModelImporterTest.class.st +++ b/src/Moose-SmalltalkImporter-Core-Tests/FamixReferenceModelImporterTest.class.st @@ -392,6 +392,15 @@ FamixReferenceModelImporterTest >> testConstantMethodAnnotation [ self assert: method isConstant ] +{ #category : #tests } +FamixReferenceModelImporterTest >> testDisplayFullString [ + "Smoke test for #displayFullString" + + self shouldnt: [ self model entities do: [ :entity | entity displayFullString ] ] raise: Error. + + self assertEmpty: ((self model entities select: [ :entity | entity isAssociation ]) select: [ :asso | asso displayFullString = #noname ]) +] + { #category : #tests } FamixReferenceModelImporterTest >> testExtendedClasses [ | subRootModelTwo p1 p2 subRootModelThree extensionMethod |