BUG-6858: adapt to ise api, change lookup from ise
[groupbasedpolicy.git] / sxp-integration / sxp-ise-adapter / src / test / java / org / opendaylight / groupbasedpolicy / sxp_ise_adapter / impl / SgtToEpgGeneratorImplTest.java
index b2463cdcf00c98ca6dbd520a8b6595010aa08087..869d968379b13169450e89acab277e6e938880f8 100644 (file)
@@ -41,8 +41,10 @@ public class SgtToEpgGeneratorImplTest {
 
     public static final TenantId TENANT_ID = new TenantId("tenant-unit-1");
     public static final Sgt SGT_1 = new Sgt(1);
+    public static final String SGT_1_UUID = "uuid-1";
     public static final String EPG_NAME_1 = "epg-unit-1";
     public static final Sgt SGT_2 = new Sgt(2);
+    public static final String SGT_2_UUID = "uuid-2";
     public static final String EPG_NAME_2 = "epg-unit-2";
 
     @Mock
@@ -61,8 +63,8 @@ public class SgtToEpgGeneratorImplTest {
 
     @Test
     public void testProcessSgtInfo() throws Exception {
-        final SgtInfo sgtInfo1 = new SgtInfo(SGT_1, EPG_NAME_1);
-        final SgtInfo sgtInfo2 = new SgtInfo(SGT_2, EPG_NAME_2);
+        final SgtInfo sgtInfo1 = new SgtInfo(SGT_1, EPG_NAME_1, SGT_1_UUID);
+        final SgtInfo sgtInfo2 = new SgtInfo(SGT_2, EPG_NAME_2, SGT_2_UUID);
 
         final CheckedFuture<Void, TransactionCommitFailedException> outcome =
                 generator.processSgtInfo(TENANT_ID, Lists.newArrayList(sgtInfo1, sgtInfo2));