Code formatting

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@106945 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Tuna Aksoy
2015-06-24 08:51:45 +00:00
parent 4720ee2cdc
commit 72ec88a334

View File

@@ -28,37 +28,29 @@ import org.junit.Test;
* @author Oana Nechiforescu * @author Oana Nechiforescu
* @since 3.0 * @since 3.0
*/ */
public class ExemptionCategoryFieldsValidatorUnitTest public class ExemptionCategoryFieldsValidatorUnitTest
{ {
/** Exemption category fields validator */
ExemptionCategoryFieldsValidator exemptionCategoryFieldsValidator = new ExemptionCategoryFieldsValidator(); ExemptionCategoryFieldsValidator exemptionCategoryFieldsValidator = new ExemptionCategoryFieldsValidator();
@Test(expected = IllegalArgumentException.class) @Test(expected = IllegalArgumentException.class)
public void testMissingExemptionCategoryID() public void testMissingExemptionCategoryID()
{ {
ExemptionCategory exemptionCategory = new ExemptionCategory("", "label"); ExemptionCategory exemptionCategory = new ExemptionCategory("", "label");
exemptionCategoryFieldsValidator.validate(exemptionCategory); exemptionCategoryFieldsValidator.validate(exemptionCategory);
} }
@Test(expected = IllegalArgumentException.class) @Test(expected = IllegalArgumentException.class)
public void testMissingExemptionCategoryLabel() public void testMissingExemptionCategoryLabel()
{ {
ExemptionCategory exemptionCategory = new ExemptionCategory("12@1", ""); ExemptionCategory exemptionCategory = new ExemptionCategory("12@1", "");
exemptionCategoryFieldsValidator.validate(exemptionCategory); exemptionCategoryFieldsValidator.validate(exemptionCategory);
} }
@Test(expected = IllegalConfiguration.class) @Test(expected = IllegalConfiguration.class)
public void testExemptionIDStartingWithNonAlphanumericCharacter() public void testExemptionIDStartingWithNonAlphanumericCharacter()
{ {
ExemptionCategory exemptionCategory = new ExemptionCategory(" 12", "critical"); ExemptionCategory exemptionCategory = new ExemptionCategory(" 12", "critical");
exemptionCategoryFieldsValidator.validate(exemptionCategory); exemptionCategoryFieldsValidator.validate(exemptionCategory);
} }
} }