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:
Tom Page
2015-10-13 13:43:38 +00:00
parent 9e93ad5f10
commit ac0c84d838
5 changed files with 33 additions and 28 deletions

View File

@@ -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");