X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=src%2Ftest%2Fjava%2Forg%2Fopenecomp%2Fsa%2Frest%2FStubEsController.java;h=8f8a06f93392993ffcd10698d21b90061fe7b1fb;hb=629c4dc6e90840f164af0091eb00c4bcf4033f83;hp=f3e56192e6a0d8eaa30b39ecba208625a4be3c75;hpb=895cd72a962de1868151288d4df1510db5280fab;p=aai%2Fsearch-data-service.git diff --git a/src/test/java/org/openecomp/sa/rest/StubEsController.java b/src/test/java/org/openecomp/sa/rest/StubEsController.java index f3e5619..8f8a06f 100644 --- a/src/test/java/org/openecomp/sa/rest/StubEsController.java +++ b/src/test/java/org/openecomp/sa/rest/StubEsController.java @@ -60,7 +60,8 @@ public class StubEsController implements DocumentStoreInterface { @Override - public OperationResult createIndex(String index, DocumentSchema documentSchema) { + public OperationResult createIndex(String index, + DocumentSchema documentSchema) { // Just return an OK result, with the parameters that we were passed // bundled in the response string. This allows unit tests to validate @@ -91,8 +92,11 @@ public class StubEsController implements DocumentStoreInterface { } @Override - public DocumentOperationResult createDocument(String indexName, - DocumentStoreDataEntity document) throws DocumentStoreOperationException { + public DocumentOperationResult createDocument(String indexName, + DocumentStoreDataEntity document, + boolean allowImplicitIndexCreation) + throws DocumentStoreOperationException { + DocumentOperationResult opResult = buildSampleDocumentOperationResult(); if (indexName.equals(DOES_NOT_EXIST_INDEX)) { @@ -110,8 +114,11 @@ public class StubEsController implements DocumentStoreInterface { } @Override - public DocumentOperationResult updateDocument(String indexName, - DocumentStoreDataEntity document) throws DocumentStoreOperationException { + public DocumentOperationResult updateDocument(String indexName, + DocumentStoreDataEntity document, + boolean allowImplicitIndexCreation) + throws DocumentStoreOperationException { + DocumentOperationResult opResult = buildSampleDocumentOperationResult(); if (indexName.equals(DOES_NOT_EXIST_INDEX)) {