author | Jan Vrany <jan.vrany@labware.com> |
Sat, 04 Jul 2020 08:14:13 +0100 | |
branch | jv |
changeset 1121 | c5661215109c |
parent 817 | 082b771e4172 |
permissions | -rw-r--r-- |
1121
c5661215109c
Tonel: various fixes here and there (part 2)
Jan Vrany <jan.vrany@labware.com>
parents:
817
diff
changeset
|
1 |
" |
c5661215109c
Tonel: various fixes here and there (part 2)
Jan Vrany <jan.vrany@labware.com>
parents:
817
diff
changeset
|
2 |
COPYRIGHT (c) 2020 LabWare |
c5661215109c
Tonel: various fixes here and there (part 2)
Jan Vrany <jan.vrany@labware.com>
parents:
817
diff
changeset
|
3 |
" |
28 | 4 |
"{ Package: 'stx:goodies/monticello/test' }" |
5 |
||
1121
c5661215109c
Tonel: various fixes here and there (part 2)
Jan Vrany <jan.vrany@labware.com>
parents:
817
diff
changeset
|
6 |
"{ NameSpace: Smalltalk }" |
c5661215109c
Tonel: various fixes here and there (part 2)
Jan Vrany <jan.vrany@labware.com>
parents:
817
diff
changeset
|
7 |
|
28 | 8 |
MCTestCase subclass:#MCPatchTest |
9 |
instanceVariableNames:'patch' |
|
10 |
classVariableNames:'' |
|
11 |
poolDictionaries:'' |
|
817
082b771e4172
Tests moved to category SCM-Monticello-Tests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
28
diff
changeset
|
12 |
category:'SCM-Monticello-Tests' |
28 | 13 |
! |
14 |
||
1121
c5661215109c
Tonel: various fixes here and there (part 2)
Jan Vrany <jan.vrany@labware.com>
parents:
817
diff
changeset
|
15 |
!MCPatchTest class methodsFor:'documentation'! |
c5661215109c
Tonel: various fixes here and there (part 2)
Jan Vrany <jan.vrany@labware.com>
parents:
817
diff
changeset
|
16 |
|
c5661215109c
Tonel: various fixes here and there (part 2)
Jan Vrany <jan.vrany@labware.com>
parents:
817
diff
changeset
|
17 |
copyright |
c5661215109c
Tonel: various fixes here and there (part 2)
Jan Vrany <jan.vrany@labware.com>
parents:
817
diff
changeset
|
18 |
" |
c5661215109c
Tonel: various fixes here and there (part 2)
Jan Vrany <jan.vrany@labware.com>
parents:
817
diff
changeset
|
19 |
COPYRIGHT (c) 2020 LabWare |
c5661215109c
Tonel: various fixes here and there (part 2)
Jan Vrany <jan.vrany@labware.com>
parents:
817
diff
changeset
|
20 |
|
c5661215109c
Tonel: various fixes here and there (part 2)
Jan Vrany <jan.vrany@labware.com>
parents:
817
diff
changeset
|
21 |
" |
c5661215109c
Tonel: various fixes here and there (part 2)
Jan Vrany <jan.vrany@labware.com>
parents:
817
diff
changeset
|
22 |
! ! |
28 | 23 |
|
24 |
!MCPatchTest methodsFor:'as yet unclassified'! |
|
25 |
||
26 |
setUp |
|
27 |
|rev1 rev2| |
|
28 |
rev1 _ MCSnapshotResource takeSnapshot. |
|
29 |
self change: #one toReturn: 2. |
|
30 |
rev2 _ MCSnapshotResource takeSnapshot. |
|
31 |
patch _ rev2 patchRelativeToBase: rev1. |
|
32 |
self change: #one toReturn: 1. |
|
33 |
! |
|
34 |
||
35 |
tearDown |
|
36 |
self restoreMocks |
|
37 |
! |
|
38 |
||
39 |
testPatchContents |
|
40 |
self assert: patch operations size = 1. |
|
41 |
self assert: patch operations first isModification. |
|
42 |
self assert: patch operations first definition selector = #one. |
|
43 |
! ! |
|
44 |
||
45 |
!MCPatchTest class methodsFor:'documentation'! |
|
46 |
||
47 |
version |
|
817
082b771e4172
Tests moved to category SCM-Monticello-Tests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
28
diff
changeset
|
48 |
^ '$Header: /cvs/stx/stx/goodies/monticello/test/MCPatchTest.st,v 1.2 2013-05-29 00:01:43 vrany Exp $' |
28 | 49 |
! ! |
817
082b771e4172
Tests moved to category SCM-Monticello-Tests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
28
diff
changeset
|
50 |