diff options
author | Haakon Dybdahl <dybdahl@yahoo-inc.com> | 2017-02-27 10:02:55 +0100 |
---|---|---|
committer | Haakon Dybdahl <dybdahl@yahoo-inc.com> | 2017-02-27 10:02:55 +0100 |
commit | ceaa98f507b652b571300ca8771051bb35f1790f (patch) | |
tree | 5c9900c0cb7e9652c4f957deb9bf23a7b33f5981 /vespaclient-container-plugin/src/test/java/com/yahoo/document/restapi/resource | |
parent | 01a7850d2ec5c980238cd54f5ca4b7d9dae1a316 (diff) |
Add route option, to be tested in system test.
Diffstat (limited to 'vespaclient-container-plugin/src/test/java/com/yahoo/document/restapi/resource')
-rw-r--r-- | vespaclient-container-plugin/src/test/java/com/yahoo/document/restapi/resource/MockedOperationHandler.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vespaclient-container-plugin/src/test/java/com/yahoo/document/restapi/resource/MockedOperationHandler.java b/vespaclient-container-plugin/src/test/java/com/yahoo/document/restapi/resource/MockedOperationHandler.java index ab5b36c74d1..2d98b72e579 100644 --- a/vespaclient-container-plugin/src/test/java/com/yahoo/document/restapi/resource/MockedOperationHandler.java +++ b/vespaclient-container-plugin/src/test/java/com/yahoo/document/restapi/resource/MockedOperationHandler.java @@ -24,13 +24,13 @@ public class MockedOperationHandler implements OperationHandler { } @Override - public void put(RestUri restUri, VespaXMLFeedReader.Operation data) throws RestApiException { + public void put(RestUri restUri, VespaXMLFeedReader.Operation data, Optional<String> route) throws RestApiException { log.append("PUT: " + data.getDocument().getId()); log.append(data.getDocument().getBody().toString()); } @Override - public void update(RestUri restUri, VespaXMLFeedReader.Operation data) throws RestApiException { + public void update(RestUri restUri, VespaXMLFeedReader.Operation data, Optional<String> route) throws RestApiException { log.append("UPDATE: " + data.getDocumentUpdate().getId()); log.append(data.getDocumentUpdate().getFieldUpdates().toString()); if (data.getDocumentUpdate().getCreateIfNonExistent()) { @@ -39,7 +39,7 @@ public class MockedOperationHandler implements OperationHandler { } @Override - public void delete(RestUri restUri, String condition) throws RestApiException { + public void delete(RestUri restUri, String condition, Optional<String> route) throws RestApiException { deleteCount++; if (deleteCount == 2) { String theLog = log.toString(); |