Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proper name for testisDefinedAsPackageOrSubPackageInMC #3078

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
28 changes: 14 additions & 14 deletions src/Monticello-Tests/RPackageMCSynchronisationTest.class.st
Expand Up @@ -207,6 +207,20 @@ RPackageMCSynchronisationTest >> testCategoryMatching [
self deny: (self organizer category: 'XXXX' matches: 'Compression-Archives').
]

{ #category : #tests }
RPackageMCSynchronisationTest >> testIsDefinedAsPackageOrSubPackageInMC [
"test whether a given category is defined as a MC package or whether it is defined as top part of package"

self assert: (self organizer isDefinedAsPackageOrSubPackageInMC: #'Compression').
self deny: (self organizer isDefinedAsPackageOrSubPackageInMC: #'Compression-Archives').
"Indeed compression-archives is a category but not a MC package"

self assert: (self organizer isDefinedAsPackageOrSubPackageInMC: #'Collections').
"#Collection is not defined as a package but as a package #'Collections-Unordered'"
self assert: (self organizer isDefinedAsPackageOrSubPackageInMC: #'Collections-Unordered').
self deny: (self organizer isDefinedAsPackageOrSubPackageInMC: #'Collections-Unordered-Test').
]

{ #category : #'to move to a simple RPackage test case' }
RPackageMCSynchronisationTest >> testNotRepackagedAnnouncementWhenModifyMethodByMovingInSameExtensionCategory [

Expand Down Expand Up @@ -328,17 +342,3 @@ RPackageMCSynchronisationTest >> testRepackagedAnnouncementWhenModifyMethodByMov
self assert: ann oldPackage equals: secondPackage.
self assert: ann newPackage equals: firstPackage.
]

{ #category : #tests }
RPackageMCSynchronisationTest >> testisDefinedAsPackageOrSubPackageInMC [
"test whether a given category is defined as a MC package or whether it is defined as top part of package"

self assert: (self organizer isDefinedAsPackageOrSubPackageInMC: #'Compression').
self deny: (self organizer isDefinedAsPackageOrSubPackageInMC: #'Compression-Archives').
"Indeed compression-archives is a category but not a MC package"

self assert: (self organizer isDefinedAsPackageOrSubPackageInMC: #'Collections').
"#Collection is not defined as a package but as a package #'Collections-Unordered'"
self assert: (self organizer isDefinedAsPackageOrSubPackageInMC: #'Collections-Unordered').
self deny: (self organizer isDefinedAsPackageOrSubPackageInMC: #'Collections-Unordered-Test').
]