Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
moved the test Class to a new package changed the instance variable name (b to browser) added the package to the baseline
- Loading branch information
Showing
4 changed files
with
109 additions
and
111 deletions.
There are no files selected for viewing
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
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,52 @@ | ||
" | ||
This class is testing Monticello initialization | ||
" | ||
Class { | ||
#name : #MCWorkingCopyBrowserTest, | ||
#superclass : #TestCase, | ||
#instVars : [ | ||
'browser' | ||
], | ||
#category : #'MonticelloGUI-Tests' | ||
} | ||
|
||
{ #category : #running } | ||
MCWorkingCopyBrowserTest >> setUp [ | ||
super setUp. | ||
browser := MCWorkingCopyBrowser new. | ||
] | ||
|
||
{ #category : #tests } | ||
MCWorkingCopyBrowserTest >> testDefault [ | ||
"When opened, there are plenty of packages, ie., working copies that are listed" | ||
self assert: browser workingCopies notNil. | ||
self assert: browser workingCopies notEmpty. | ||
|
||
"When opening, there is no repository selected" | ||
self assert: browser repository isNil. | ||
|
||
"No repository is selected" | ||
self assert: browser repositorySelection equals: 0 | ||
] | ||
|
||
{ #category : #tests } | ||
MCWorkingCopyBrowserTest >> testRepositories [ | ||
self assert: browser repositories notNil. | ||
self assert: browser repositories notEmpty. | ||
self assert: browser repositoryGroup notNil. | ||
self assert: browser repositoryGroup repositories size equals: browser repositories size. | ||
] | ||
|
||
{ #category : #tests } | ||
MCWorkingCopyBrowserTest >> testRepositoriesIncludeCache [ | ||
"At least one cache is present in the list of repositories" | ||
self assert: (browser repositories anySatisfy: [ :r | r class == MCCacheRepository ]) | ||
] | ||
|
||
{ #category : #tests } | ||
MCWorkingCopyBrowserTest >> testRepositoryList [ | ||
self assert: browser repositoryList notNil. | ||
self assert: browser repositoryList notEmpty. | ||
self assert: browser repositoryList size equals: browser repositories size. | ||
self assert: (browser repositoryList allSatisfy: [ :r | r isString ]). | ||
] |
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 @@ | ||
Package { #name : #'MonticelloGUI-Tests' } |
This file was deleted.
Oops, something went wrong.