-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test loading using fake change records
- Loading branch information
Abdu
committed
Aug 6, 2021
1 parent
6123773
commit 06fc15c
Showing
14 changed files
with
83 additions
and
10 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
...ages/ChangesReloaded-Tests.package/CRBrowserTest.class/instance/expectedFiledInChanges.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
expectedFiledInChanges | ||
|
||
^ #(false true true false false false false false true false false false true false false false false false false) asOrderedCollection |
12 changes: 12 additions & 0 deletions
12
packages/ChangesReloaded-Tests.package/CRBrowserTest.class/instance/pickSomeChanges.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
mock inputs | ||
pickSomeChanges. | ||
|
||
self changesBrowser | ||
groupIndex: 5; | ||
versionIndex: 2; | ||
pickButtonClicked. | ||
|
||
self changesBrowser | ||
groupIndex: 2; | ||
versionIndex: 1; | ||
pickButtonClicked. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 0 additions & 8 deletions
8
...ges/ChangesReloaded-Tests.package/CRBrowserTest.class/instance/testAfterLoadingChanges.st
This file was deleted.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
packages/ChangesReloaded-Tests.package/CRBrowserTest.class/instance/testLoadAfterPicking.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
testing-functionality | ||
testLoadAfterPicking | ||
|
||
| changeListItems | | ||
changeListItems := self changesBrowser changeListItems. | ||
|
||
self pickSomeChanges. | ||
self assert: 4 equals: self changesBrowser numberOfPickedChangeListItems. | ||
|
||
self changesBrowser loadPickedChanges. | ||
self assert: self expectedFiledInChanges equals: (changeListItems collect: [:each | each filedIn]). |
12 changes: 12 additions & 0 deletions
12
...ages/ChangesReloaded-Tests.package/CRBrowserTest.class/instance/testLoadWithoutPicking.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
testing-functionality | ||
testLoadWithoutPicking | ||
|
||
| changeListItems | | ||
changeListItems := self changesBrowser changeListItems. | ||
|
||
self assert: self changesBrowser hasChanges. | ||
self changesBrowser | ||
unpickAllChanges; | ||
loadPickedChanges. | ||
self deny: self changesBrowser hasChanges. | ||
self assert: (changeListItems noneSatisfy: [:each | each filedIn]). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
4 changes: 4 additions & 0 deletions
4
packages/ChangesReloaded-Tests.package/CRFakeChangeRecord.class/class/newFrom..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
instance creation | ||
newFrom: aChangeRecord | ||
|
||
^ self new copySameFrom: aChangeRecord |
4 changes: 4 additions & 0 deletions
4
packages/ChangesReloaded-Tests.package/CRFakeChangeRecord.class/instance/fileIn.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
fileIn | ||
|
||
self filedIn: true. |
4 changes: 4 additions & 0 deletions
4
packages/ChangesReloaded-Tests.package/CRFakeChangeRecord.class/instance/filedIn..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
filedIn: aBool | ||
|
||
filedIn := aBool. |
4 changes: 4 additions & 0 deletions
4
packages/ChangesReloaded-Tests.package/CRFakeChangeRecord.class/instance/filedIn.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
filedIn | ||
|
||
^ filedIn ifNil: [false] |
7 changes: 7 additions & 0 deletions
7
packages/ChangesReloaded-Tests.package/CRFakeChangeRecord.class/methodProperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"class" : { | ||
"newFrom:" : "abd 8/5/2021 22:05" }, | ||
"instance" : { | ||
"fileIn" : "abd 8/5/2021 22:24", | ||
"filedIn" : "abd 8/5/2021 21:59", | ||
"filedIn:" : "abd 8/5/2021 21:51" } } |
14 changes: 14 additions & 0 deletions
14
packages/ChangesReloaded-Tests.package/CRFakeChangeRecord.class/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"category" : "ChangesReloaded-Tests", | ||
"classinstvars" : [ | ||
], | ||
"classvars" : [ | ||
], | ||
"commentStamp" : "", | ||
"instvars" : [ | ||
"filedIn" ], | ||
"name" : "CRFakeChangeRecord", | ||
"pools" : [ | ||
], | ||
"super" : "ChangeRecord", | ||
"type" : "normal" } |