mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Rating Service minor improvements.
Added afterPropertiesSet to prevent rating schemes with minimum > maximum. Changed 'fivestar' scheme range from 0..5 to 1..5 git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21046 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -135,7 +135,7 @@ public class RatingServiceIntegrationTest extends BaseAlfrescoSpringTest
|
||||
RatingScheme fiveStarRS = schemes.get(FIVE_STAR_SCHEME_NAME);
|
||||
assertNotNull("'5*' rating scheme was missing.", fiveStarRS);
|
||||
assertEquals("'5*' rating scheme had wrong name.", FIVE_STAR_SCHEME_NAME, fiveStarRS.getName());
|
||||
assertEquals("'5*' rating scheme had wrong min.", 0, fiveStarRS.getMinRating());
|
||||
assertEquals("'5*' rating scheme had wrong min.", 1, fiveStarRS.getMinRating());
|
||||
assertEquals("'5*' rating scheme had wrong max.", 5, fiveStarRS.getMaxRating());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user