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
* @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);
}
}