Skip to content

Commit

Permalink
reworking tests - wip
Browse files Browse the repository at this point in the history
  • Loading branch information
JanBliznicenko committed Jun 30, 2024
1 parent 577445e commit 945365c
Show file tree
Hide file tree
Showing 18 changed files with 98 additions and 229 deletions.
5 changes: 0 additions & 5 deletions repository/OpenPonk-BPMN/OPBPMNActivityController.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,6 @@ OPBPMNActivityController >> canBeTargetFor: aController [
]
]

{ #category : 'accessing' }
OPBPMNActivityController >> dependentElements [
^ (model incoming , model outgoing) asSet
]

{ #category : 'connecting' }
OPBPMNActivityController >> diagramElementClass [

Expand Down
16 changes: 8 additions & 8 deletions repository/OpenPonk-BPMN/OPBPMNActivityControllerTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@ OPBPMNActivityControllerTest >> controllerClass [
]

{ #category : 'accessing' }
OPBPMNActivityControllerTest >> diagramElementClass [
^ OPBPMNActivityShape
OPBPMNActivityControllerTest >> creationTargetControllerClass [
^ OPBPMNPoolController
]

{ #category : 'accessing' }
OPBPMNActivityControllerTest >> modelClass [
^ OPBPMNActivityModel
OPBPMNActivityControllerTest >> creationTargetModelClass [
^ OPBPMNPoolModel
]

{ #category : 'accessing' }
OPBPMNActivityControllerTest >> targetControllerClass [
^ OPBPMNPoolController
OPBPMNActivityControllerTest >> diagramElementClass [
^ OPBPMNActivityShape
]

{ #category : 'accessing' }
OPBPMNActivityControllerTest >> targetModelClass [
^ OPBPMNPoolModel
OPBPMNActivityControllerTest >> modelClass [
^ OPBPMNActivityModel
]
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ OPBPMNBasicFlowControllerTest >> modelClass [
]

{ #category : 'accessing' }
OPBPMNBasicFlowControllerTest >> targetControllerClass [
^ OPBPMNActivityController
OPBPMNBasicFlowControllerTest >> sourceControllerClass [

^ OPBPMNActivityController
]

{ #category : 'accessing' }
OPBPMNBasicFlowControllerTest >> targetModelClass [
OPBPMNBasicFlowControllerTest >> sourceModelClass [
^ OPBPMNActivityModel
]
16 changes: 8 additions & 8 deletions repository/OpenPonk-BPMN/OPBPMNBoundaryEventTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,23 @@ OPBPMNBoundaryEventTest >> controllerClass [
]

{ #category : 'accessing' }
OPBPMNBoundaryEventTest >> diagramElementClass [
^ OPBPMNBoundaryEventShape
OPBPMNBoundaryEventTest >> creationTargetControllerClass [
^ OPBPMNSubProcessController
]

{ #category : 'accessing' }
OPBPMNBoundaryEventTest >> modelClass [
^ OPBPMNBoundaryEventModel
OPBPMNBoundaryEventTest >> creationTargetModelClass [
^ OPBPMNSubProcessModel
]

{ #category : 'accessing' }
OPBPMNBoundaryEventTest >> targetControllerClass [
^ OPBPMNSubProcessController
OPBPMNBoundaryEventTest >> diagramElementClass [
^ OPBPMNBoundaryEventShape
]

{ #category : 'accessing' }
OPBPMNBoundaryEventTest >> targetModelClass [
^ OPBPMNSubProcessModel
OPBPMNBoundaryEventTest >> modelClass [
^ OPBPMNBoundaryEventModel
]

{ #category : 'accessing' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,6 @@ OPBPMNCollapsedSubProcessController >> canBeTargetFor: aController [
]
]

{ #category : 'testing' }
OPBPMNCollapsedSubProcessController >> dependentElements [
^ (model incoming , model outgoing) asSet
]

{ #category : 'testing' }
OPBPMNCollapsedSubProcessController >> diagramElementClass [

Expand Down
16 changes: 8 additions & 8 deletions repository/OpenPonk-BPMN/OPBPMNCollapsedSubProcessTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@ OPBPMNCollapsedSubProcessTest >> controllerClass [
]

{ #category : 'accessing' }
OPBPMNCollapsedSubProcessTest >> diagramElementClass [
^ OPBPMNCollapsedSubProcessShape
OPBPMNCollapsedSubProcessTest >> creationTargetControllerClass [
^ OPBPMNPoolController
]

{ #category : 'accessing' }
OPBPMNCollapsedSubProcessTest >> modelClass [
^ OPBPMNCollapsedSubProcessModel
OPBPMNCollapsedSubProcessTest >> creationTargetModelClass [
^ OPBPMNPoolModel
]

{ #category : 'accessing' }
OPBPMNCollapsedSubProcessTest >> targetControllerClass [
^ OPBPMNPoolController
OPBPMNCollapsedSubProcessTest >> diagramElementClass [
^ OPBPMNCollapsedSubProcessShape
]

{ #category : 'accessing' }
OPBPMNCollapsedSubProcessTest >> targetModelClass [
^ OPBPMNPoolModel
OPBPMNCollapsedSubProcessTest >> modelClass [
^ OPBPMNCollapsedSubProcessModel
]
92 changes: 0 additions & 92 deletions repository/OpenPonk-BPMN/OPBPMNControllerTest.class.st

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ OPBPMNDataFlowControllerTest >> modelClass [
]

{ #category : 'accessing' }
OPBPMNDataFlowControllerTest >> targetControllerClass [
OPBPMNDataFlowControllerTest >> sourceControllerClass [
^ OPBPMNDataObjectController
]

{ #category : 'accessing' }
OPBPMNDataFlowControllerTest >> targetModelClass [
OPBPMNDataFlowControllerTest >> sourceModelClass [
^ OPBPMNDataObjectModel
]

Expand Down
16 changes: 8 additions & 8 deletions repository/OpenPonk-BPMN/OPBPMNDataObjectTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@ OPBPMNDataObjectTest >> controllerClass [
]

{ #category : 'accessing' }
OPBPMNDataObjectTest >> diagramElementClass [
^ OPBPMNDataObjectShape
OPBPMNDataObjectTest >> creationTargetControllerClass [
^ OPBPMNPoolController
]

{ #category : 'accessing' }
OPBPMNDataObjectTest >> modelClass [
^ OPBPMNDataObjectModel
OPBPMNDataObjectTest >> creationTargetModelClass [
^ OPBPMNPoolModel
]

{ #category : 'accessing' }
OPBPMNDataObjectTest >> targetControllerClass [
^ OPBPMNPoolController
OPBPMNDataObjectTest >> diagramElementClass [
^ OPBPMNDataObjectShape
]

{ #category : 'accessing' }
OPBPMNDataObjectTest >> targetModelClass [
^ OPBPMNPoolModel
OPBPMNDataObjectTest >> modelClass [
^ OPBPMNDataObjectModel
]
18 changes: 9 additions & 9 deletions repository/OpenPonk-BPMN/OPBPMNEndEventControllerTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,22 @@ OPBPMNEndEventControllerTest >> controllerClass [
]

{ #category : 'accessing' }
OPBPMNEndEventControllerTest >> diagramElementClass [

^ OPBPMNEndEventShape
OPBPMNEndEventControllerTest >> creationTargetControllerClass [
^ OPBPMNPoolController
]

{ #category : 'accessing' }
OPBPMNEndEventControllerTest >> modelClass [
^ OPBPMNEndEventModel
OPBPMNEndEventControllerTest >> creationTargetModelClass [
^ OPBPMNPoolModel
]

{ #category : 'accessing' }
OPBPMNEndEventControllerTest >> targetControllerClass [
^ OPBPMNPoolController
OPBPMNEndEventControllerTest >> diagramElementClass [

^ OPBPMNEndEventShape
]

{ #category : 'accessing' }
OPBPMNEndEventControllerTest >> targetModelClass [
^ OPBPMNPoolModel
OPBPMNEndEventControllerTest >> modelClass [
^ OPBPMNEndEventModel
]
25 changes: 8 additions & 17 deletions repository/OpenPonk-BPMN/OPBPMNFlowControllerTest.class.st
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
Class {
#name : 'OPBPMNFlowControllerTest',
#superclass : 'OPBPMNControllerTest',
#instVars : [
'fromCtrl',
'toCtrl'
],
#superclass : 'OPAbstractDirectionalRelationshipControllerTest',
#category : 'OpenPonk-BPMN-Tests',
#package : 'OpenPonk-BPMN',
#tag : 'Tests'
Expand All @@ -23,27 +19,22 @@ OPBPMNFlowControllerTest >> amountOfLabels [
^ 1
]

{ #category : 'tests' }
OPBPMNFlowControllerTest >> controllerClass [
^ self subclassResponsibility
]
{ #category : 'accessing' }
OPBPMNFlowControllerTest >> diagramControllerClass [

{ #category : 'tests' }
OPBPMNFlowControllerTest >> diagramElementClass [
^ OPBPMNDiagramController
]

^ self subclassResponsibility
{ #category : 'accessing' }
OPBPMNFlowControllerTest >> diagramModelClass [
^ OPBPMNModel
]

{ #category : 'tests' }
OPBPMNFlowControllerTest >> fromClass [
^ OPBPMNStartEventController
]

{ #category : 'tests' }
OPBPMNFlowControllerTest >> modelClass [
^ self subclassResponsibility
]

{ #category : 'tests' }
OPBPMNFlowControllerTest >> setUp [

Expand Down
16 changes: 8 additions & 8 deletions repository/OpenPonk-BPMN/OPBPMNGatewayControllerTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@ OPBPMNGatewayControllerTest >> controllerClass [
]

{ #category : 'accessing' }
OPBPMNGatewayControllerTest >> diagramElementClass [
^ OPBPMNGatewayShape
OPBPMNGatewayControllerTest >> creationTargetControllerClass [
^ OPBPMNPoolController
]

{ #category : 'accessing' }
OPBPMNGatewayControllerTest >> modelClass [
^ OPBPMNGatewayModel
OPBPMNGatewayControllerTest >> creationTargetModelClass [
^ OPBPMNPoolModel
]

{ #category : 'accessing' }
OPBPMNGatewayControllerTest >> targetControllerClass [
^ OPBPMNPoolController
OPBPMNGatewayControllerTest >> diagramElementClass [
^ OPBPMNGatewayShape
]

{ #category : 'accessing' }
OPBPMNGatewayControllerTest >> targetModelClass [
^ OPBPMNPoolModel
OPBPMNGatewayControllerTest >> modelClass [
^ OPBPMNGatewayModel
]
Loading

0 comments on commit 945365c

Please sign in to comment.