review updates

This commit is contained in:
Rodica Sutu
2017-01-04 17:17:22 +02:00
parent 5e5482f912
commit 3e47691827
4 changed files with 75 additions and 58 deletions

View File

@@ -74,7 +74,9 @@ public class RecordsAPI extends RMModelRequest
public <T> T getRecordContentText(String recordId) throws Exception
{
mandatoryString("recordId", recordId);
Response response = given().auth().basic(getRMRestWrapper().getTestUser().getUsername(), getRMRestWrapper().getTestUser().getPassword())
Response response = given().auth().basic(getRMRestWrapper().getTestUser().getUsername(),
getRMRestWrapper().getTestUser().getPassword()
)
.get("records/{recordId}/content", recordId)
.andReturn();
@@ -84,10 +86,10 @@ public class RecordsAPI extends RMModelRequest
}
/**
* Get the html content for the electronic record
* Get the content RestHtmlResponse(Response header and body) for the electronic record
*
* @param recordId The id of the electronic record
* @return The content for the given record id
* @return The body and the header for the record
* @throws Exception for the following cases:
* <ul>
* <li>{@code recordId} has no content</li>