From 21a3dd4d81fa3fb13033045d6e6f606db3302280 Mon Sep 17 00:00:00 2001 From: anquetil Date: Tue, 26 Sep 2023 13:38:39 +0200 Subject: [PATCH] corrected one test --- .../FamixUMLDocumentorTest.class.st | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/Famix-UMLDocumentor-Tests/FamixUMLDocumentorTest.class.st b/src/Famix-UMLDocumentor-Tests/FamixUMLDocumentorTest.class.st index 5ba9807d..71624629 100644 --- a/src/Famix-UMLDocumentor-Tests/FamixUMLDocumentorTest.class.st +++ b/src/Famix-UMLDocumentor-Tests/FamixUMLDocumentorTest.class.st @@ -30,14 +30,12 @@ FamixUMLDocumentorTest >> testBeWithStub [ self assert: documentor isWithStub. self assert: documentor umlEntities size equals: 2. - entity := documentor umlEntities first. - self assert: entity class equals: FamixUMLClass. - self assert: entity name equals: 'Trait3'. + entity := documentor umlEntities detect: [:e | (e class = FamixUMLClass) and: [e name = 'Trait3']] ifNone: [nil]. + self assert: entity isNotNil. self deny: entity isStub. - entity := documentor umlEntities second. - self assert: entity class equals: FamixUMLClass. - self assert: entity name equals: 'Trait2'. + entity := documentor umlEntities detect: [:e | (e class = FamixUMLClass) and: [e name = 'Trait2']] ifNone: [nil]. + self assert: entity isNotNil. self assert: entity isStub. self deny: documentor umlEntities first color equals: documentor umlEntities second color.