Updated the README file, made some minor changes.

This commit is contained in:
Tuna Aksoy
2016-10-20 23:26:29 +01:00
parent 95888e178b
commit d8f9f2bc3e
4 changed files with 11 additions and 2 deletions

1
README
View File

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

View File

@@ -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"),

View File

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

View File

@@ -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());
} }
} }