Skip to content

Commit

Permalink
[feenkcom/gtoolkit#4072] Automated refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
akgrant43 committed Oct 15, 2024
1 parent 2490cd0 commit ae5cd03
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
7 changes: 7 additions & 0 deletions src/GToolkit4Epicea/GtEpEventSequencerExamples.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@ GtEpEventSequencerExamples class >> testDataRoot [
/ self name.
]

{ #category : #asserting }
GtEpEventSequencerExamples >> assert: actual equals: expected [
^ self
assert: (actual sameContentAs: expected)
description: [ self comparingStringBetween: actual and: expected ]
]

{ #category : #examples }
GtEpEventSequencerExamples >> behaviorRenameWithoutDependentsForExport [
"Check that adding a class and method when the required superclass / class is missing is sequenced correctly."
Expand Down
11 changes: 6 additions & 5 deletions src/GToolkit4Epicea/GtEpReplayBehaviorModel.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -270,11 +270,12 @@ GtEpReplayBehaviorModel >> inheritedFrom: aBehavior [
GtEpReplayBehaviorModel >> inheritedFrom: aBehavior modifiedAfter: aDateAndTime [
"Answer a boolean indicating whether the receiver inherited from aBehavior at any time in its history"

^ (self inheritsFrom: aBehavior) or:
[ entries anySatisfy: [ :entry |
entry content isEpClassModification and:
[ entry content behaviorAffected superclassName = aBehavior name and:
[ entry gtTime > aDateAndTime ] ] ] ]
^ (self inheritsFrom: aBehavior)
or: [ entries
anySatisfy: [ :entry |
entry content isEpClassModification
and: [ (entry content behaviorAffected superclassName sameContentAs: aBehavior name)
and: [ entry gtTime > aDateAndTime ] ] ] ]
]

{ #category : #accessing }
Expand Down

0 comments on commit ae5cd03

Please sign in to comment.