Re-enable I18N CMIS tests

- add support for encoding to Mock HTTP Request in Web Script Test Server
- tests run in default encoding (UTF-8), and non-default encoding (ISO-8859-1)
- also run AtomPub Client test suite (which has some I18N tests too)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14233 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
David Caruana
2009-05-07 13:31:37 +00:00
parent d3c4375ad1
commit 749352836f
3 changed files with 938 additions and 937 deletions

View File

@@ -106,7 +106,7 @@ public class CMISTest extends BaseCMISWebScriptTest
assertNotNull(entry);
}
public void xtestCreateAtomEntry()
public void testCreateAtomEntry()
throws Exception
{
Entry testFolder = createTestFolder("testCreateAtomEntry");
@@ -578,7 +578,7 @@ public class CMISTest extends BaseCMISWebScriptTest
assertEquals("updated content " + guid, contentRes.getContentAsString());
}
public void xtestUpdatePutAtomEntry()
public void testUpdatePutAtomEntry()
throws Exception
{
// retrieve test folder for update

View File

@@ -348,7 +348,7 @@ public abstract class BaseWebScriptTest extends TestCase
asUser = (asUser == null) ? defaultRunAs : asUser;
if (asUser == null)
{
return BaseWebScriptTest.getServer().submitRequest(req.getMethod(), req.getFullUri(), req.getHeaders(), req.getBody(), req.getType());
return BaseWebScriptTest.getServer().submitRequest(req.getMethod(), req.getFullUri(), req.getHeaders(), req.getBody(), req.getEncoding(), req.getType());
}
else
{
@@ -358,7 +358,7 @@ public abstract class BaseWebScriptTest extends TestCase
@SuppressWarnings("synthetic-access")
public Response doWork() throws Exception
{
return BaseWebScriptTest.getServer().submitRequest(req.getMethod(), req.getFullUri(), req.getHeaders(), req.getBody(), req.getType());
return BaseWebScriptTest.getServer().submitRequest(req.getMethod(), req.getFullUri(), req.getHeaders(), req.getBody(), req.getEncoding(), req.getType());
}
}, asUser);
}

File diff suppressed because it is too large Load Diff