import java.util.HashMap;
import org.apache.http.client.ClientProtocolException;
+import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.mockito.InjectMocks;
String json = "{"
+ "\"vnfm-id\":\"vnfm-id_001\","
- + "\"esr-system-info-list\":[{\"ip\" : \"1.3.5.6\"}]"
+ + "\"vim-id\":\"vim-id_001\","
+ + "\"certificate-url\":\"certificate-url_001\","
+ + "\"resource-version\":\"resource-version_001\","
+ + "\"esr-system-info\":[{\"type\" : \"vnfm\"}]"
+ "}"
+ "";
HttpResult httpResult = new HttpResult();
public void testQueryVnfPackage() throws ClientProtocolException, IOException
{
AaiVnfmInfo vnfmInfo = aaiMgmr.queryVnfm(vnfmId);
-// Assert.assertEquals("1.3.5.6", vnfmInfo.getEsrSystemInfoList().get(0).getIp());
+ Assert.assertEquals("vnfm", vnfmInfo.getEsrSystemInfoList().get(0).getType());
}
}