diff --git a/rm-server/unit-test/java/org/alfresco/module/org_alfresco_module_rm/classification/validation/ExemptionCategoryFieldsValidatorUnitTest.java b/rm-server/unit-test/java/org/alfresco/module/org_alfresco_module_rm/classification/validation/ExemptionCategoryFieldsValidatorUnitTest.java index f33c78d690..6c2dbef318 100644 --- a/rm-server/unit-test/java/org/alfresco/module/org_alfresco_module_rm/classification/validation/ExemptionCategoryFieldsValidatorUnitTest.java +++ b/rm-server/unit-test/java/org/alfresco/module/org_alfresco_module_rm/classification/validation/ExemptionCategoryFieldsValidatorUnitTest.java @@ -28,37 +28,29 @@ import org.junit.Test; * @author Oana Nechiforescu * @since 3.0 */ - -public class ExemptionCategoryFieldsValidatorUnitTest +public class ExemptionCategoryFieldsValidatorUnitTest { - + /** Exemption category fields validator */ ExemptionCategoryFieldsValidator exemptionCategoryFieldsValidator = new ExemptionCategoryFieldsValidator(); @Test(expected = IllegalArgumentException.class) - public void testMissingExemptionCategoryID() + public void testMissingExemptionCategoryID() { - ExemptionCategory exemptionCategory = new ExemptionCategory("", "label"); exemptionCategoryFieldsValidator.validate(exemptionCategory); - - } - - @Test(expected = IllegalArgumentException.class) - public void testMissingExemptionCategoryLabel() - { - - ExemptionCategory exemptionCategory = new ExemptionCategory("12@1", ""); - exemptionCategoryFieldsValidator.validate(exemptionCategory); - - } - - @Test(expected = IllegalConfiguration.class) - public void testExemptionIDStartingWithNonAlphanumericCharacter() - { - - ExemptionCategory exemptionCategory = new ExemptionCategory(" 12", "critical"); - exemptionCategoryFieldsValidator.validate(exemptionCategory); - } -} + @Test(expected = IllegalArgumentException.class) + public void testMissingExemptionCategoryLabel() + { + ExemptionCategory exemptionCategory = new ExemptionCategory("12@1", ""); + exemptionCategoryFieldsValidator.validate(exemptionCategory); + } + + @Test(expected = IllegalConfiguration.class) + public void testExemptionIDStartingWithNonAlphanumericCharacter() + { + ExemptionCategory exemptionCategory = new ExemptionCategory(" 12", "critical"); + exemptionCategoryFieldsValidator.validate(exemptionCategory); + } +} \ No newline at end of file