Fix grant manager initialization
[vfc/nfvo/driver/vnfm/svnfm.git] / nokiav2 / driver / src / test / java / org / onap / vfc / nfvo / driver / vnfm / svnfm / nokia / onap / vfc / TestVfcExternalSystemInfoProvider.java
index 0b49b91..6025604 100644 (file)
@@ -16,6 +16,7 @@
 
 package org.onap.vfc.nfvo.driver.vnfm.svnfm.nokia.onap.vfc;
 
+import com.google.common.collect.Sets;
 import org.junit.Before;
 import org.junit.Test;
 import org.onap.vfc.nfvo.driver.vnfm.svnfm.nokia.vnfm.TestBase;
@@ -96,4 +97,13 @@ public class TestVfcExternalSystemInfoProvider extends TestBase {
             verify(logger).error("Unable to query VNFM from VF-C with myVnfmId identifier", expectedException);
         }
     }
+
+    /**
+     * The VNFM identifier is loaded from property files
+     */
+    @Test
+    public void testGetVnfms(){
+        setFieldWithPropertyAnnotation(vfcExternalSystemInfoProvider, "${vnfmId}", "myVnfmId");
+        assertEquals(Sets.newHashSet("myVnfmId"), vfcExternalSystemInfoProvider.getVnfms());
+    }
 }