Added stream content 'kind of' web script, modified ContentGet webscript to use common code, create GET thumbnail method based on stream content kind of web script

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9395 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Roy Wetherall
2008-06-05 10:07:26 +00:00
parent 6878025007
commit 0c1d2728fb
12 changed files with 606 additions and 310 deletions

View File

@@ -131,11 +131,12 @@ public abstract class BaseWebScriptTest extends TestCase
MockHttpServletResponse response = BaseWebScriptTest.getServer().submitRequest(method, url, new HashMap<String, String>(), body, contentType);
if (expectedStatus > 0 && expectedStatus != response.getStatus())
{
if (response.getStatus() == 500)
{
//if (response.getStatus() == 500)
//{
System.out.println(response.getContentAsString());
}
fail("Expected status code " + expectedStatus + " , " + response.getStatus() + " was returned.");
//}
fail("Expected status code " + expectedStatus + " , " + response.getStatus() + " was returned");
}
return response;
}