test/MCPatchTest.st
author Claus Gittinger <cg@exept.de>
Sat, 01 Sep 2018 17:33:15 +0200
changeset 1092 8d0ea96a3d72
parent 817 082b771e4172
child 1121 c5661215109c
permissions -rw-r--r--
initial checkin class: MCFileTreeFileSystemUtils class: MCFileTreeFileSystemUtils class added:17 methods
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
28
2581cee089af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     1
"{ Package: 'stx:goodies/monticello/test' }"
2581cee089af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     2
2581cee089af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     3
MCTestCase subclass:#MCPatchTest
2581cee089af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
	instanceVariableNames:'patch'
2581cee089af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
	classVariableNames:''
2581cee089af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     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
2581cee089af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
!
2581cee089af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     9
2581cee089af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    10
2581cee089af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    11
!MCPatchTest methodsFor:'as yet unclassified'!
2581cee089af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
2581cee089af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
setUp
2581cee089af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
	|rev1 rev2|
2581cee089af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
	rev1 _  MCSnapshotResource takeSnapshot.
2581cee089af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
	self change: #one toReturn: 2.
2581cee089af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
	rev2 _  MCSnapshotResource takeSnapshot.
2581cee089af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
	patch _ rev2 patchRelativeToBase: rev1.
2581cee089af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
	self change: #one toReturn: 1.
2581cee089af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
!
2581cee089af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
2581cee089af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
tearDown
2581cee089af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
	self restoreMocks
2581cee089af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
!
2581cee089af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
2581cee089af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
testPatchContents
2581cee089af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
	self assert: patch operations size = 1.
2581cee089af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
	self assert: patch operations first isModification.
2581cee089af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
	self assert: patch operations first definition selector = #one.
2581cee089af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
! !
2581cee089af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
2581cee089af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
!MCPatchTest class methodsFor:'documentation'!
2581cee089af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
2581cee089af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    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
2581cee089af initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
! !
817
082b771e4172 Tests moved to category SCM-Monticello-Tests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 28
diff changeset
    37