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:
Derek Hulley
2011-07-01 10:51:36 +00:00
parent f18746b781
commit f54c5e8bf5
3 changed files with 18 additions and 25 deletions

View File

@@ -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