mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
RM-2324 AC Automation: Invalid values
fix git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@106937 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -19,15 +19,14 @@
|
|||||||
package org.alfresco.module.org_alfresco_module_rm.classification.validation;
|
package org.alfresco.module.org_alfresco_module_rm.classification.validation;
|
||||||
|
|
||||||
import org.alfresco.module.org_alfresco_module_rm.classification.ClassificationException.IllegalConfiguration;
|
import org.alfresco.module.org_alfresco_module_rm.classification.ClassificationException.IllegalConfiguration;
|
||||||
import org.alfresco.module.org_alfresco_module_rm.classification.ClassificationException.MissingConfiguration;
|
|
||||||
import org.alfresco.module.org_alfresco_module_rm.classification.ExemptionCategory;
|
import org.alfresco.module.org_alfresco_module_rm.classification.ExemptionCategory;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Unit tests for the {@link ExemptionCategoryFieldsValidator}.
|
* Unit tests for the {@link ExemptionCategoryFieldsValidator}.
|
||||||
*
|
*
|
||||||
* @author onechiforescu
|
* @author Oana Nechiforescu
|
||||||
*
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class ExemptionCategoryFieldsValidatorUnitTest
|
public class ExemptionCategoryFieldsValidatorUnitTest
|
||||||
@@ -35,7 +34,7 @@ public class ExemptionCategoryFieldsValidatorUnitTest
|
|||||||
|
|
||||||
ExemptionCategoryFieldsValidator exemptionCategoryFieldsValidator = new ExemptionCategoryFieldsValidator();
|
ExemptionCategoryFieldsValidator exemptionCategoryFieldsValidator = new ExemptionCategoryFieldsValidator();
|
||||||
|
|
||||||
@Test(expected = MissingConfiguration.class)
|
@Test(expected = IllegalArgumentException.class)
|
||||||
public void testMissingExemptionCategoryID()
|
public void testMissingExemptionCategoryID()
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -44,7 +43,7 @@ public class ExemptionCategoryFieldsValidatorUnitTest
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(expected = MissingConfiguration.class)
|
@Test(expected = IllegalArgumentException.class)
|
||||||
public void testMissingExemptionCategoryLabel()
|
public void testMissingExemptionCategoryLabel()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user