mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Updated the README file, made some minor changes.
This commit is contained in:
1
README
1
README
@@ -0,0 +1 @@
|
|||||||
|
In order to change the value of a property in "config.properties" create a file called "local.properties" under src/test/resources and redefine the property with the new value.
|
@@ -19,6 +19,7 @@ package org.alfresco.rest.model;
|
|||||||
*/
|
*/
|
||||||
public enum FileplanComponentType
|
public enum FileplanComponentType
|
||||||
{
|
{
|
||||||
|
FILE_PLAN("rma:filePlan"),
|
||||||
RECORD_CATEGORY("rma:recordCategory"),
|
RECORD_CATEGORY("rma:recordCategory"),
|
||||||
RECORD_FOLDER("rma:recordFolder"),
|
RECORD_FOLDER("rma:recordFolder"),
|
||||||
HOLD("rma:hold"),
|
HOLD("rma:hold"),
|
||||||
|
@@ -32,6 +32,12 @@ import org.testng.annotations.BeforeClass;
|
|||||||
@PropertySource(value = "classpath:local.properties", ignoreResourceNotFound = true)
|
@PropertySource(value = "classpath:local.properties", ignoreResourceNotFound = true)
|
||||||
public class BaseIgRestTest extends RestTest
|
public class BaseIgRestTest extends RestTest
|
||||||
{
|
{
|
||||||
|
/** Alias which can be used instead of the identifier of a node. */
|
||||||
|
public static final String ALIAS_FILE_PLAN = "-filePlan-";
|
||||||
|
public static final String ALIAS_TRANSFERS = "-transfers-";
|
||||||
|
public static final String ALIAS_UNFILED_RECORDS_CONTAINER = "-unfiled-";
|
||||||
|
public static final String ALIAS_HOLDS = "-holds-";
|
||||||
|
|
||||||
@Value("${alfresco.rm.scheme}")
|
@Value("${alfresco.rm.scheme}")
|
||||||
private String scheme;
|
private String scheme;
|
||||||
|
|
||||||
|
@@ -11,6 +11,7 @@
|
|||||||
*/
|
*/
|
||||||
package org.alfresco.rest.fileplancomponents;
|
package org.alfresco.rest.fileplancomponents;
|
||||||
|
|
||||||
|
import static org.alfresco.rest.model.FileplanComponentType.FILE_PLAN;
|
||||||
import static org.springframework.http.HttpStatus.OK;
|
import static org.springframework.http.HttpStatus.OK;
|
||||||
import static org.testng.Assert.assertEquals;
|
import static org.testng.Assert.assertEquals;
|
||||||
|
|
||||||
@@ -41,8 +42,8 @@ public class FilePlanComponentsTest extends BaseIgRestTest
|
|||||||
{
|
{
|
||||||
RestWrapper restWrapper = filePlanComponentApi.usingRestWrapper();
|
RestWrapper restWrapper = filePlanComponentApi.usingRestWrapper();
|
||||||
restWrapper.authenticateUser(dataUser.getAdminUser());
|
restWrapper.authenticateUser(dataUser.getAdminUser());
|
||||||
RestFilePlanComponentModel filePlanComponent = filePlanComponentApi.getFilePlanComponent("-filePlan-");
|
RestFilePlanComponentModel filePlanComponent = filePlanComponentApi.getFilePlanComponent(ALIAS_FILE_PLAN);
|
||||||
restWrapper.assertStatusCodeIs(OK);
|
restWrapper.assertStatusCodeIs(OK);
|
||||||
assertEquals(filePlanComponent.getNodeType(), "rma:filePlan");
|
assertEquals(filePlanComponent.getNodeType(), FILE_PLAN.toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user