mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user