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
|
* @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);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Reference in New Issue
Block a user