298
|
1 |
"{ Package: 'stx:goodies/monticello' }"
|
|
2 |
|
|
3 |
MCTestCase subclass:#MCPatchTest
|
|
4 |
instanceVariableNames:'patch'
|
|
5 |
classVariableNames:''
|
|
6 |
poolDictionaries:''
|
|
7 |
category:'Monticello-Tests'
|
|
8 |
!
|
|
9 |
|
|
10 |
|
|
11 |
!MCPatchTest methodsFor:'as yet unclassified'!
|
|
12 |
|
|
13 |
setUp
|
|
14 |
|rev1 rev2|
|
|
15 |
rev1 := MCSnapshotResource takeSnapshot.
|
|
16 |
self change: #one toReturn: 2.
|
|
17 |
rev2 := MCSnapshotResource takeSnapshot.
|
|
18 |
patch := rev2 patchRelativeToBase: rev1.
|
|
19 |
self change: #one toReturn: 1.
|
|
20 |
!
|
|
21 |
|
|
22 |
tearDown
|
|
23 |
self restoreMocks
|
|
24 |
!
|
|
25 |
|
|
26 |
testPatchContents
|
|
27 |
self assert: patch operations size = 1.
|
|
28 |
self assert: patch operations first isModification.
|
|
29 |
self assert: patch operations first definition selector = #one.
|
|
30 |
|
|
31 |
! !
|
|
32 |
|
|
33 |
!MCPatchTest class methodsFor:'documentation'!
|
|
34 |
|
|
35 |
version
|
|
36 |
^ '$Header: /cvs/stx/stx/goodies/monticello/MCPatchTest.st,v 1.1 2011-08-20 12:17:47 cg Exp $'
|
|
37 |
!
|
|
38 |
|
|
39 |
version_CVS
|
|
40 |
^ '$Header: /cvs/stx/stx/goodies/monticello/MCPatchTest.st,v 1.1 2011-08-20 12:17:47 cg Exp $'
|
|
41 |
!
|
|
42 |
|
|
43 |
version_SVN
|
|
44 |
^ '§Id: MCPatchTest.st 5 2010-08-29 07:30:29Z vranyj1 §'
|
|
45 |
! !
|