mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Build fix: Relax tests now that Integer.MAX_VALUE is allowed for the row limit
- ALF-7167 (RINF 11) - CQ git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28750 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -233,15 +233,16 @@ public class CannedQueryDAOTest extends TestCase
|
||||
{
|
||||
// Expected
|
||||
}
|
||||
try
|
||||
{
|
||||
cannedQueryDAO.executeQuery(QUERY_NS, QUERY_SELECT_MIMETYPES, null, 0, Integer.MAX_VALUE);
|
||||
fail("Illegal parameter not detected");
|
||||
}
|
||||
catch (IllegalArgumentException e)
|
||||
{
|
||||
// Expected
|
||||
}
|
||||
// TODO MyBatis workaround - temporarily support unlimited for nested result maps (see also below)
|
||||
// try
|
||||
// {
|
||||
// cannedQueryDAO.executeQuery(QUERY_NS, QUERY_SELECT_MIMETYPES, null, 0, Integer.MAX_VALUE);
|
||||
// fail("Illegal parameter not detected");
|
||||
// }
|
||||
// catch (IllegalArgumentException e)
|
||||
// {
|
||||
// // Expected
|
||||
// }
|
||||
}
|
||||
|
||||
public void testExecute_ListMimetypes() throws Throwable
|
||||
|
Reference in New Issue
Block a user