From 2dcebed2197c5aed07dd4fa61d915d9df92f8a02 Mon Sep 17 00:00:00 2001 From: Torsten Bergmann Date: Fri, 29 Mar 2019 13:45:51 +0100 Subject: [PATCH] Proper name for testisDefinedAsPackageOrSubPackageInMC fixes #3077 --- .../RPackageMCSynchronisationTest.class.st | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/Monticello-Tests/RPackageMCSynchronisationTest.class.st b/src/Monticello-Tests/RPackageMCSynchronisationTest.class.st index d1da603a575..d64a370bded 100644 --- a/src/Monticello-Tests/RPackageMCSynchronisationTest.class.st +++ b/src/Monticello-Tests/RPackageMCSynchronisationTest.class.st @@ -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 [ @@ -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'). -]