Skip to content

Commit 6f63b03

Browse files
authored
Merge pull request pharo-spec#92 from pharo-spec/revert-90-87-update-SindarinDebuggerTesttestIsAboutToInstantiateClass
Revert "Fix pharo-spec#87. Update a test to use the new name of a method"
2 parents 1ab02dc + eae1abe commit 6f63b03

File tree

4 files changed

+133
-139
lines changed

4 files changed

+133
-139
lines changed

src/Sindarin-Tests/SindarinDebugSessionMock.class.st

+16-18
Original file line numberDiff line numberDiff line change
@@ -2,82 +2,80 @@
22
I mock sindarin debug sessions to control it finely during tests
33
"
44
Class {
5-
#name : 'SindarinDebugSessionMock',
6-
#superclass : 'Object',
5+
#name : #SindarinDebugSessionMock,
6+
#superclass : #Object,
77
#instVars : [
88
'isMessage',
99
'selector',
1010
'receiver'
1111
],
12-
#category : 'Sindarin-Tests-Mocks',
13-
#package : 'Sindarin-Tests',
14-
#tag : 'Mocks'
12+
#category : #'Sindarin-Tests-Mocks'
1513
}
1614

17-
{ #category : 'accessing' }
15+
{ #category : #accessing }
1816
SindarinDebugSessionMock >> context [
1917
^self
2018
]
2119

22-
{ #category : 'accessing' }
20+
{ #category : #accessing }
2321
SindarinDebugSessionMock >> debugSession [
2422
^self
2523
]
2624

27-
{ #category : 'accessing' }
25+
{ #category : #accessing }
2826
SindarinDebugSessionMock >> interruptedContext [
2927
^self
3028
]
3129

32-
{ #category : 'accessing' }
30+
{ #category : #accessing }
3331
SindarinDebugSessionMock >> isMessage [
3432
^isMessage ifNil:[false]
3533
]
3634

37-
{ #category : 'accessing' }
35+
{ #category : #accessing }
3836
SindarinDebugSessionMock >> isMessage: anObject [
3937

4038
isMessage := anObject
4139
]
4240

43-
{ #category : 'accessing' }
41+
{ #category : #accessing }
4442
SindarinDebugSessionMock >> method [
4543
^self
4644
]
4745

48-
{ #category : 'accessing' }
46+
{ #category : #accessing }
4947
SindarinDebugSessionMock >> pc [
5048
^self
5149
]
5250

53-
{ #category : 'accessing' }
51+
{ #category : #accessing }
5452
SindarinDebugSessionMock >> receiver [
5553
^receiver
5654
]
5755

58-
{ #category : 'accessing' }
56+
{ #category : #accessing }
5957
SindarinDebugSessionMock >> receiver: anObject [
6058

6159
receiver := anObject
6260
]
6361

64-
{ #category : 'accessing' }
62+
{ #category : #accessing }
6563
SindarinDebugSessionMock >> selector [
6664
^selector
6765
]
6866

69-
{ #category : 'accessing' }
67+
{ #category : #accessing }
7068
SindarinDebugSessionMock >> selector: anObject [
7169

7270
selector := anObject
7371
]
7472

75-
{ #category : 'accessing' }
73+
{ #category : #accessing }
7674
SindarinDebugSessionMock >> sourceNodeExecuted [
7775
^self
7876
]
7977

80-
{ #category : 'accessing' }
78+
{ #category : #accessing }
8179
SindarinDebugSessionMock >> sourceNodeForPC: pc [
8280
^self
8381
]

src/Sindarin-Tests/SindarinDebugSessionTest.class.st

+7-9
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
Class {
2-
#name : 'SindarinDebugSessionTest',
3-
#superclass : 'TestCase',
2+
#name : #SindarinDebugSessionTest,
3+
#superclass : #TestCase,
44
#instVars : [
55
'debugSession',
66
'sindarinSession'
77
],
8-
#category : 'Sindarin-Tests-Base',
9-
#package : 'Sindarin-Tests',
10-
#tag : 'Base'
8+
#category : #'Sindarin-Tests-Base'
119
}
1210

13-
{ #category : 'running' }
11+
{ #category : #running }
1412
SindarinDebugSessionTest >> setUp [
1513
"Hooks that subclasses may override to define the fixture of test."
1614

@@ -19,21 +17,21 @@ SindarinDebugSessionTest >> setUp [
1917
sindarinSession := debugSession asSindarinDebugSession
2018
]
2119

22-
{ #category : 'tests' }
20+
{ #category : #tests }
2321
SindarinDebugSessionTest >> testDebugSessionAsSindarinDebugSession [
2422

2523
self assert: sindarinSession debugSession identicalTo: debugSession
2624
]
2725

28-
{ #category : 'tests' }
26+
{ #category : #tests }
2927
SindarinDebugSessionTest >> testSindarinSessionAsSindarinDebugSession [
3028

3129
self
3230
assert: sindarinSession asSindarinDebugSession
3331
identicalTo: sindarinSession
3432
]
3533

36-
{ #category : 'tests' }
34+
{ #category : #tests }
3735
SindarinDebugSessionTest >> testSindarinSessionInstantiation [
3836

3937
| sessionName process |

0 commit comments

Comments
 (0)