-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e63dc65
commit afe7298
Showing
3 changed files
with
182 additions
and
36 deletions.
There are no files selected for viewing
100 changes: 100 additions & 0 deletions
100
src/Molecule-IDE-Tests/MolComponentToRoassalTest.class.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
" | ||
A MolComponentToRoassalTest is a test class for testing the behavior of MolComponentToRoassal | ||
" | ||
Class { | ||
#name : #MolComponentToRoassalTest, | ||
#superclass : #TestCase, | ||
#category : #'Molecule-IDE-Tests-Cases' | ||
} | ||
|
||
{ #category : #running } | ||
MolComponentToRoassalTest >> setUp [ | ||
|
||
super setUp. | ||
MolComponentManager cleanUp | ||
] | ||
|
||
{ #category : #running } | ||
MolComponentToRoassalTest >> tearDown [ | ||
|
||
MolComponentManager cleanUp. | ||
super tearDown | ||
] | ||
|
||
{ #category : #tests } | ||
MolComponentToRoassalTest >> testAssociationsAllConsumedEventsAndTargetsFor [ | ||
|
||
| list component | | ||
component := MolCompleteComponentImpl start. | ||
list := MolComponentToRoassal associationsAllConsumedEventsAndTargetsFor: component. | ||
self assert: list notEmpty. | ||
|
||
component := MolCompleteComponentImpl new. | ||
list := MolComponentToRoassal associationsAllConsumedEventsAndTargetsFor: component. | ||
self assert: list isEmpty. | ||
] | ||
|
||
{ #category : #tests } | ||
MolComponentToRoassalTest >> testAssociationsAllProducedEventsAndTargetsFor [ | ||
|
||
| list component | | ||
component := MolCompleteComponentImpl start. | ||
list := MolComponentToRoassal associationsAllProducedEventsAndTargetsFor: component. | ||
self assert: list notEmpty. | ||
|
||
component := MolCompleteComponentImpl new. | ||
list := MolComponentToRoassal associationsAllProducedEventsAndTargetsFor: component. | ||
self assert: list notEmpty. | ||
] | ||
|
||
{ #category : #tests } | ||
MolComponentToRoassalTest >> testAssociationsAllProvidedParametersAndTargetsFor [ | ||
|
||
| list component | | ||
component := MolCompleteComponentImpl start. | ||
list := MolComponentToRoassal associationsAllProvidedParametersAndTargetsFor: component. | ||
self assert: list notEmpty. | ||
|
||
component := MolCompleteComponentImpl new. | ||
list := MolComponentToRoassal associationsAllProvidedParametersAndTargetsFor: component. | ||
self assert: list notEmpty. | ||
] | ||
|
||
{ #category : #tests } | ||
MolComponentToRoassalTest >> testAssociationsAllProvidedServicesAndTargetsFor [ | ||
|
||
| list component | | ||
component := MolCompleteComponentImpl start. | ||
list := MolComponentToRoassal associationsAllProvidedServicesAndTargetsFor: component. | ||
self assert: list notEmpty. | ||
|
||
component := MolCompleteComponentImpl new. | ||
list := MolComponentToRoassal associationsAllProvidedServicesAndTargetsFor: component. | ||
self assert: list notEmpty. | ||
] | ||
|
||
{ #category : #tests } | ||
MolComponentToRoassalTest >> testAssociationsAllUsedParametersAndTargetsFor [ | ||
|
||
| list component | | ||
component := MolCompleteComponentImpl start. | ||
list := MolComponentToRoassal associationsAllUsedParametersAndTargetsFor: component. | ||
self assert: list notEmpty. | ||
|
||
component := MolCompleteComponentImpl new. | ||
list := MolComponentToRoassal associationsAllUsedParametersAndTargetsFor: component. | ||
self assert: list isEmpty. | ||
] | ||
|
||
{ #category : #tests } | ||
MolComponentToRoassalTest >> testAssociationsAllUsedServicesAndTargetsFor [ | ||
|
||
| list component | | ||
component := MolCompleteComponentImpl start. | ||
list := MolComponentToRoassal associationsAllUsedServicesAndTargetsFor: component. | ||
self assert: list notEmpty. | ||
|
||
component := MolCompleteComponentImpl new. | ||
list := MolComponentToRoassal associationsAllUsedServicesAndTargetsFor: component. | ||
self assert: list isEmpty. | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
" | ||
Tests on Pharo IDE features (i.e. inspector). | ||
" | ||
Class { | ||
#name : #MolPharoIDETest, | ||
#superclass : #TestCase, | ||
#category : #'Molecule-IDE-Tests-Cases' | ||
} | ||
|
||
{ #category : #running } | ||
MolPharoIDETest >> setUp [ | ||
|
||
super setUp. | ||
MolComponentManager cleanUp | ||
] | ||
|
||
{ #category : #running } | ||
MolPharoIDETest >> tearDown [ | ||
|
||
MolComponentManager cleanUp. | ||
super tearDown | ||
] | ||
|
||
{ #category : #running } | ||
MolPharoIDETest >> testInspectComponent [ | ||
|
||
| component inspector | | ||
component := MolBasicComponentImpl start. | ||
self flag:'pla: this test is manual, need to test if there is an error automatically'. | ||
inspector := (Smalltalk tools inspector inspect: component). | ||
] | ||
|
||
{ #category : #running } | ||
MolPharoIDETest >> testInspectComponentWithNew [ | ||
|
||
| component inspector | | ||
component := MolBasicComponentImpl new. | ||
self flag:'pla: this test is manual, need to test if there is an error automatically'. | ||
inspector := (Smalltalk tools inspector inspect: component). | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters