1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- Class {
- #name : #ZnockExpectation,
- #superclass : #ZnClient,
- #instVars : [
- 'delay',
- 'customizeResponseBlock'
- ],
- #category : #Znock
- }
- { #category : #accessing }
- ZnockExpectation >> customizeResponseBlock [
- ^ customizeResponseBlock
- ]
- { #category : #accessing }
- ZnockExpectation >> customizeResponseBlock: anObject [
- customizeResponseBlock := anObject
- ]
- { #category : #operations }
- ZnockExpectation >> customizeResponseFromRequest: aZnRequest [
- customizeResponseBlock ifNotNil: [ customizeResponseBlock value: aZnRequest value: response ]
- ]
- { #category : #accessing }
- ZnockExpectation >> delay [
- ^ delay
- ]
- { #category : #accessing }
- ZnockExpectation >> delay: anObject [
- delay := anObject
- ]
- { #category : #operations }
- ZnockExpectation >> execute [
- "Do nothing"
- ]
- { #category : #initialization }
- ZnockExpectation >> initialize [
- super initialize.
- customizeResponseBlock := nil.
- delay := nil.
- ]
- { #category : #accessing }
- ZnockExpectation >> response: aZnResponse [
- response := aZnResponse
- ]
|