author | HG Automerge |
Thu, 24 Nov 2016 21:56:31 +0000 | |
branch | jv |
changeset 1015 | 7b6393ea3d52 |
parent 817 | 082b771e4172 |
child 1121 | c5661215109c |
permissions | -rw-r--r-- |
28 | 1 |
"{ Package: 'stx:goodies/monticello/test' }" |
2 |
||
3 |
MCTestCase subclass:#MCPatchTest |
|
4 |
instanceVariableNames:'patch' |
|
5 |
classVariableNames:'' |
|
6 |
poolDictionaries:'' |
|
817
082b771e4172
Tests moved to category SCM-Monticello-Tests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
28
diff
changeset
|
7 |
category:'SCM-Monticello-Tests' |
28 | 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 |
!MCPatchTest class methodsFor:'documentation'! |
|
33 |
||
34 |
version |
|
817
082b771e4172
Tests moved to category SCM-Monticello-Tests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
28
diff
changeset
|
35 |
^ '$Header: /cvs/stx/stx/goodies/monticello/test/MCPatchTest.st,v 1.2 2013-05-29 00:01:43 vrany Exp $' |
28 | 36 |
! ! |
817
082b771e4172
Tests moved to category SCM-Monticello-Tests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
28
diff
changeset
|
37 |