- new MockUp<VnfmUtil>() {
-
- @Mock
- public JSONObject getVnfmById(String vnfmId) {
- JSONObject obj = new JSONObject();
- obj.put("type", "hw");
- obj.put("vnfmId", "123");
- obj.put("userName", "admin");
- obj.put("password", "admin");
- obj.put("url", "https://127.0.0.1:30001");
- return obj;
- }
- };
-
- new MockUp<VnfmDaoImpl>() {
-
- @Mock
- public Vnfm getVnfmById(String vnfmId) {
- Vnfm obj = new Vnfm();
- obj.setId("123");
- obj.setVersion("v2.0");
- obj.setVnfdId("234");
- obj.setVnfPackageId("123");
- return obj;
- }
- };
-
- new MockUp<ResultRequestUtil>() {
-
- @Mock
- public JSONObject call(JSONObject vnfmObjcet, String path, String methodName, String paramsJson) {
- JSONObject resultJson = new JSONObject();
- resultJson.put("retCode", Constant.HTTP_OK);
- JSONObject data = new JSONObject();
-
- JSONArray result = new JSONArray();
- JSONObject basicInfo = new JSONObject();
- basicInfo.put("id", "NE=345");
- basicInfo.put("vapp_name", "sc");
- basicInfo.put("status", "active");
- result.add(basicInfo);
- data.put("basic", result);
- resultJson.put("data", data.toString());
- return resultJson;
- }
- };
-
+// new MockUp<VnfmUtil>() {
+//
+// @Mock
+// public JSONObject getVnfmById(String vnfmId) {
+// JSONObject obj = new JSONObject();
+// obj.put("type", "hw");
+// obj.put("vnfmId", "123");
+// obj.put("userName", "admin");
+// obj.put("password", "admin");
+// obj.put("url", "https://127.0.0.1:30001");
+// return obj;
+// }
+// };
+//
+// new MockUp<VnfmDaoImpl>() {
+//
+// @Mock
+// public Vnfm getVnfmById(String vnfmId) {
+// Vnfm obj = new Vnfm();
+// obj.setId("123");
+// obj.setVersion("v2.0");
+// obj.setVnfdId("234");
+// obj.setVnfPackageId("123");
+// return obj;
+// }
+// };
+//
+// new MockUp<ResultRequestUtil>() {
+//
+// @Mock
+// public JSONObject call(JSONObject vnfmObjcet, String path, String methodName, String paramsJson) {
+// JSONObject resultJson = new JSONObject();
+// resultJson.put("retCode", Constant.HTTP_OK);
+// JSONObject data = new JSONObject();
+//
+// JSONArray result = new JSONArray();
+// JSONObject basicInfo = new JSONObject();
+// basicInfo.put("id", "NE=345");
+// basicInfo.put("vapp_name", "sc");
+// basicInfo.put("status", "active");
+// result.add(basicInfo);
+// data.put("basic", result);
+// resultJson.put("data", data.toString());
+// return resultJson;
+// }
+// };
+//