Merge Sabre4 to HEAD

110681: Extract modulepackages as a constant RA-370


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@111190 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gethin James
2015-09-01 13:05:05 +00:00
parent 8962c270e3
commit 3c0449ad18

View File

@@ -41,6 +41,7 @@ import java.util.List;
*/
public class ModulePackagesApiTest extends AbstractBaseApiTest
{
public static final String MODULEPACKAGES = "modulepackages";
protected String nonAdminUserName;
@Before
@@ -52,7 +53,7 @@ public class ModulePackagesApiTest extends AbstractBaseApiTest
@Test
public void testAllModulePackages() throws Exception
{
HttpResponse response = getAll("modulepackages", nonAdminUserName, null, HttpStatus.SC_OK);
HttpResponse response = getAll(MODULEPACKAGES, nonAdminUserName, null, HttpStatus.SC_OK);
assertNotNull(response);
PublicApiClient.ExpectedPaging paging = parsePaging(response.getJsonResponse());
@@ -70,10 +71,10 @@ public class ModulePackagesApiTest extends AbstractBaseApiTest
@Test
public void testSingleModulePackage() throws Exception
{
HttpResponse response = getSingle("modulepackages", nonAdminUserName, "NonSENSE_NOTFOUND", HttpStatus.SC_NOT_FOUND);
HttpResponse response = getSingle(MODULEPACKAGES, nonAdminUserName, "NonSENSE_NOTFOUND", HttpStatus.SC_NOT_FOUND);
assertNotNull(response);
response = getSingle("modulepackages", nonAdminUserName, "alfresco-simple-module", HttpStatus.SC_OK);
response = getSingle(MODULEPACKAGES, nonAdminUserName, "alfresco-simple-module", HttpStatus.SC_OK);
assertNotNull(response);
ModulePackage simpleModule = parseRestApiEntry(response.getJsonResponse(),ModulePackage.class);