summaryrefslogtreecommitdiffstats
path: root/components/datalake-handler/feeder/src/test
diff options
context:
space:
mode:
authorZhangZihao <zhangzihao@chinamobile.com>2020-01-16 11:13:55 +0800
committerEkko Chang <ekko.chang@qct.io>2020-01-21 07:15:17 +0000
commit678c78c5c47bf836cef69a25345d766bf7fb3091 (patch)
treee2fee83138e2b17b2bf4370d6d8a9bbf2045e7af /components/datalake-handler/feeder/src/test
parent6d28fc1cf92116eb513eef783face6abcea1170b (diff)
modified dbController rest api
Change-Id: Ie1daa567338c48a13112ef1fff02109de16e8901 Issue-ID: DCAEGEN2-1877 Signed-off-by: ZhangZihao <zhangzihao@chinamobile.com>
Diffstat (limited to 'components/datalake-handler/feeder/src/test')
-rw-r--r--components/datalake-handler/feeder/src/test/java/org/onap/datalake/feeder/controller/DbControllerTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/datalake-handler/feeder/src/test/java/org/onap/datalake/feeder/controller/DbControllerTest.java b/components/datalake-handler/feeder/src/test/java/org/onap/datalake/feeder/controller/DbControllerTest.java
index c46a026b..9318ee00 100644
--- a/components/datalake-handler/feeder/src/test/java/org/onap/datalake/feeder/controller/DbControllerTest.java
+++ b/components/datalake-handler/feeder/src/test/java/org/onap/datalake/feeder/controller/DbControllerTest.java
@@ -69,6 +69,7 @@ public class DbControllerTest {
public DbConfig getDbConfig() {
DbConfig dbConfig = new DbConfig();
+ dbConfig.setId(1);
dbConfig.setName("Elecsticsearch");
dbConfig.setHost("localhost");
dbConfig.setLogin("root");
@@ -112,7 +113,7 @@ public class DbControllerTest {
DbController dbController = new DbController();
DbConfig dbConfig = getDbConfig();
when(mockBindingResult.hasErrors()).thenReturn(true);
- PostReturnBody<DbConfig> db = dbController.updateDb(dbConfig, mockBindingResult,
+ PostReturnBody<DbConfig> db = dbController.updateDb(dbConfig.getId(), dbConfig, mockBindingResult,
httpServletResponse);
assertEquals(null, db);
//when(mockBindingResult.hasErrors()).thenReturn(false);