import org.onap.aai.esr.entity.aai.EsrEmsDetail;\r
import org.onap.aai.esr.entity.aai.EsrThirdpartySdncDetail;\r
import org.onap.aai.esr.entity.aai.EsrVnfmDetail;\r
+import org.onap.aai.esr.entity.aai.EsrNfvoDetail;\r
import org.onap.aai.esr.exception.ExtsysException;\r
\r
public class ExternalSystemProxyTest {\r
@Test(expected = ExtsysException.class)\r
public void testRegisterVnfm() throws ExtsysException {\r
EsrVnfmDetail detail = new EsrVnfmDetail();\r
- ExternalSystemProxy.registerVnfm("vnfm-1", detail);\r
+ externalSystemProxy.registerVnfm("vnfm-1", detail);\r
}\r
\r
@Test(expected = ExtsysException.class)\r
public void testQueryVnfmDetail() throws ExtsysException {\r
- ExternalSystemProxy.queryVnfmDetail("vnfm-1");\r
+ externalSystemProxy.queryVnfmDetail("vnfm-1");\r
}\r
\r
@Test(expected = ExtsysException.class)\r
public void testQueryVnfmList() throws ExtsysException {\r
- ExternalSystemProxy.queryVnfmList();\r
+ externalSystemProxy.queryVnfmList();\r
}\r
\r
@Test(expected = ExtsysException.class)\r
public void testDeleteVnfm() throws ExtsysException {\r
- ExternalSystemProxy.deleteVnfm("vnfm-1", "version-1");\r
+ externalSystemProxy.deleteVnfm("vnfm-1", "version-1");\r
}\r
\r
+ @Test(expected = ExtsysException.class)\r
+ public void testRegisterNfvo() throws ExtsysException {\r
+ EsrNfvoDetail detail = new EsrNfvoDetail();\r
+ externalSystemProxy.registerNfvo("nfvo-1", detail);\r
+ }\r
+\r
+ @Test(expected = ExtsysException.class)\r
+ public void testQueryNfvoDetail() throws ExtsysException {\r
+ externalSystemProxy.queryNfvoDetail("nfvo-1");\r
+ }\r
+\r
+ @Test(expected = ExtsysException.class)\r
+ public void testQueryNfvoList() throws ExtsysException {\r
+ externalSystemProxy.queryNfvoList();\r
+ }\r
+\r
+ @Test(expected = ExtsysException.class)\r
+ public void testDeleteNfvo() throws ExtsysException {\r
+ externalSystemProxy.deleteNfvo("nfvo-1", "version-1");\r
+ }\r
+\r
+\r
+\r
+\r
@Test(expected = ExtsysException.class)\r
public void testRegisterSdnc() throws ExtsysException {\r
EsrThirdpartySdncDetail detail = new EsrThirdpartySdncDetail();\r
- ExternalSystemProxy.registerSdnc("sdnc-1", detail);\r
+ externalSystemProxy.registerSdnc("sdnc-1", detail);\r
}\r
\r
@Test(expected = ExtsysException.class)\r
public void testQueryThirdpartySdncDetail() throws ExtsysException {\r
- ExternalSystemProxy.queryThirdpartySdncDetail("sdnc-1");\r
+ externalSystemProxy.queryThirdpartySdncDetail("sdnc-1");\r
}\r
\r
@Test(expected = ExtsysException.class)\r
public void testQuerySdncList() throws ExtsysException {\r
- ExternalSystemProxy.querySdncList();\r
+ externalSystemProxy.querySdncList();\r
}\r
\r
@Test(expected = ExtsysException.class)\r
public void testDeleteThirdpartySdnc() throws ExtsysException {\r
- ExternalSystemProxy.deleteThirdpartySdnc("sdnc-1", "version-1");\r
+ externalSystemProxy.deleteThirdpartySdnc("sdnc-1", "version-1");\r
}\r
\r
@Test(expected = ExtsysException.class)\r
public void testRegisterEms() throws ExtsysException {\r
EsrEmsDetail detail = new EsrEmsDetail();\r
- ExternalSystemProxy.registerEms("ems-1", detail);\r
+ externalSystemProxy.registerEms("ems-1", detail);\r
}\r
\r
@Test(expected = ExtsysException.class)\r
public void testQueryEmsDetail() throws ExtsysException {\r
- ExternalSystemProxy.queryEmsDetail("ems-1");\r
+ externalSystemProxy.queryEmsDetail("ems-1");\r
}\r
\r
@Test(expected = ExtsysException.class)\r
public void testQueryEmsList() throws ExtsysException {\r
- ExternalSystemProxy.queryEmsList();\r
+ externalSystemProxy.queryEmsList();\r
}\r
\r
@Test(expected = ExtsysException.class)\r
public void testDeleteEms() throws ExtsysException {\r
- ExternalSystemProxy.deleteEms("ems-1", "version-1");\r
+ externalSystemProxy.deleteEms("ems-1", "version-1");\r
}\r
}\r