Skip to content

Commit

Permalink
Use new result data for templates
Browse files Browse the repository at this point in the history
Signed-off-by: tobiasKaminsky <[email protected]>
  • Loading branch information
tobiasKaminsky committed Mar 17, 2021
1 parent acf2054 commit d2c5cd4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public void testGetAll() {
.execute(client);
assertTrue(result.isSuccess());

TemplateList templateList = (TemplateList) result.getSingleData();
TemplateList templateList = (TemplateList) result.getResultData();

assertEquals("Empty file", templateList.templates.get("empty").title);
assertEquals("md", templateList.templates.get("empty").extension);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ class UpdateShareRemoteOperationIT : AbstractIT() {

val result = sut.execute(client)
assertFalse(result.isSuccess)
assertEquals("Password needs to be at least 8 characters long", result.message)
assertEquals("Password needs to be at least 8 characters long.", result.message)

assertTrue(RemoveFileRemoteOperation(folder).execute(client).isSuccess)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ protected RemoteOperationResult<TemplateList> run(OwnCloudClient client) {
.getOcs().getData();

result = new RemoteOperationResult<>(true, getMethod);
result.setSingleData(templateList);
result.setResultData(templateList);
} else {
result = new RemoteOperationResult<>(false, getMethod);
client.exhaustResponse(getMethod.getResponseBodyAsStream());
Expand Down

0 comments on commit d2c5cd4

Please sign in to comment.