mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
updates after review
This commit is contained in:
@@ -25,8 +25,6 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
|||||||
* @author Tuna Aksoy
|
* @author Tuna Aksoy
|
||||||
* @since 1.0
|
* @since 1.0
|
||||||
*/
|
*/
|
||||||
//FIXME: Once the fields have been added the JsonIgnoreProperties annotation should be removed
|
|
||||||
|
|
||||||
public class FilePlanComponent
|
public class FilePlanComponent
|
||||||
{
|
{
|
||||||
@JsonProperty (required = true)
|
@JsonProperty (required = true)
|
||||||
|
@@ -71,7 +71,7 @@ public class RecordFolderTests extends BaseRestTest
|
|||||||
@Autowired
|
@Autowired
|
||||||
public DataUser dataUser;
|
public DataUser dataUser;
|
||||||
|
|
||||||
private static final int NUMBER_OF_FOLDER= 5;
|
private static final int NUMBER_OF_FOLDERS= 5;
|
||||||
/**
|
/**
|
||||||
* Given that a record category exists
|
* Given that a record category exists
|
||||||
* When I use the API to create a new record folder
|
* When I use the API to create a new record folder
|
||||||
@@ -290,7 +290,7 @@ public class RecordFolderTests extends BaseRestTest
|
|||||||
|
|
||||||
// Add child olders
|
// Add child olders
|
||||||
ArrayList<FilePlanComponent> children = new ArrayList<FilePlanComponent>();
|
ArrayList<FilePlanComponent> children = new ArrayList<FilePlanComponent>();
|
||||||
for (int i = 0; i < NUMBER_OF_FOLDER; i++)
|
for (int i = 0; i < NUMBER_OF_FOLDERS; i++)
|
||||||
{
|
{
|
||||||
// Create a child
|
// Create a child
|
||||||
FilePlanComponent child = createFolder(category.getId(),
|
FilePlanComponent child = createFolder(category.getId(),
|
||||||
@@ -337,7 +337,8 @@ public class RecordFolderTests extends BaseRestTest
|
|||||||
assertEquals(createdComponent.getName(), filePlanComponent.getName());
|
assertEquals(createdComponent.getName(), filePlanComponent.getName());
|
||||||
assertEquals(createdComponent.getNodeType(), filePlanComponent.getNodeType());
|
assertEquals(createdComponent.getNodeType(), filePlanComponent.getNodeType());
|
||||||
|
|
||||||
} catch (NoSuchElementException e)
|
}
|
||||||
|
catch (NoSuchElementException e)
|
||||||
{
|
{
|
||||||
fail("No child element for " + filePlanComponent.getId());
|
fail("No child element for " + filePlanComponent.getId());
|
||||||
}
|
}
|
||||||
@@ -354,7 +355,8 @@ public class RecordFolderTests extends BaseRestTest
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
filePlanComponentAPI.deleteFilePlanComponent(filePlanComponentEntry.getFilePlanComponent().getId());
|
filePlanComponentAPI.deleteFilePlanComponent(filePlanComponentEntry.getFilePlanComponent().getId());
|
||||||
} catch (Exception e)
|
}
|
||||||
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user