mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
RM-2604 Fun with generics and add missing @Test annotation.
(Thanks Neil). git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/DEV/caveatmarkdatatype@114266 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -37,7 +37,8 @@ import org.junit.Test;
|
||||
public class CaveatDAOFromJSONUnitTest
|
||||
{
|
||||
/** The class under test. */
|
||||
CaveatDAOFromJSON caveatDAOFromJSON = new CaveatDAOFromJSON();
|
||||
@SuppressWarnings("rawtypes")
|
||||
CaveatDAOFromJSON<?> caveatDAOFromJSON = new CaveatDAOFromJSON();
|
||||
|
||||
/** Test that loading the default caveat configuration file doesn't throw any exceptions. */
|
||||
@Test
|
||||
@@ -90,6 +91,7 @@ public class CaveatDAOFromJSONUnitTest
|
||||
}
|
||||
|
||||
/** Test that a duplicate mark id (in different groups) doesn't cause an exception. */
|
||||
@Test
|
||||
public void testGetCaveatGroups_duplicateMarkIdInDifferentGroups()
|
||||
{
|
||||
caveatDAOFromJSON.setConfigLocation("/alfresco/caveat/rm-caveats-duplicateMarkIdInDifferentGroups.json");
|
||||
|
Reference in New Issue
Block a user