diff --git a/Molecule-Tests/MolDirtyComponentTest.class.st b/Molecule-Tests/MolDirtyComponentTest.class.st index 5f3e70c2..2f2b7e53 100644 --- a/Molecule-Tests/MolDirtyComponentTest.class.st +++ b/Molecule-Tests/MolDirtyComponentTest.class.st @@ -42,24 +42,3 @@ MolDirtyComponentTest >> tearDown [ self cleanGeneratedClassesAndTraits. MolComponentManager cleanUp. ] - -{ #category : #tests } -MolDirtyComponentTest >> testDirtyTypeWithInstanceVariableInsteadOfComponentTraits [ - - "Create a component using a dirty Type" - | component | - MolComponentFactory createComponentForType: MolDirtyType named: self generatedDirtyTypeImplementationSymbol in: self generationTag. - component := self class environment at: self generatedDirtyTypeImplementationSymbol. - - self deny: (component methodDictionary includesKey: #getnilSubscriber). - self deny: (component methodDictionary includesKey: #getnilNotifier). - self deny: (component methodDictionary includesKey: #getnilProvider). - - self assert: component allConsumedEvents isEmpty. - self assert: component allProducedEvents isEmpty. - self assert: component allProvidedServices isEmpty. - self assert: component allUsedServices isEmpty. - self assert: component allProvidedParameters isEmpty. - self assert: component allUsedParameters isEmpty. - -] diff --git a/Molecule-Tests/MolDirtyType.trait.st b/Molecule-Tests/MolDirtyType.trait.st deleted file mode 100644 index 1515dcc1..00000000 --- a/Molecule-Tests/MolDirtyType.trait.st +++ /dev/null @@ -1,49 +0,0 @@ -" -This Type have a wrong writted contract with variables instead of Traits -" -Trait { - #name : #MolDirtyType, - #classInstVars : [ - 'anInstanceVariable' - ], - #traits : 'MolComponentType', - #classTraits : 'MolComponentType classTrait', - #category : #'Molecule-Tests-Resources - Contracts' -} - -{ #category : #'accessing - events' } -MolDirtyType classSide >> consumedComponentEvents [ - - - ^ { anInstanceVariable } -] - -{ #category : #'accessing - events' } -MolDirtyType classSide >> producedComponentEvents [ - - ^ {anInstanceVariable} -] - -{ #category : #'accessing - parameters' } -MolDirtyType classSide >> providedComponentParameters [ - - ^ {anInstanceVariable} -] - -{ #category : #'accessing - services' } -MolDirtyType classSide >> providedComponentServices [ - - ^ {anInstanceVariable} -] - -{ #category : #'accessing - parameters' } -MolDirtyType classSide >> usedComponentParameters [ - - ^ {anInstanceVariable} -] - -{ #category : #'accessing - services' } -MolDirtyType classSide >> usedComponentServices [ - - ^ {anInstanceVariable} -]