Sho SHIMIZU
Committed by Ray Milkey

Modify unit test for serializing FlowRuleBatchEntry

Change-Id: Ifdd3b7fcbb37a9d304154c46ad2628aead626a00
...@@ -207,15 +207,13 @@ public class KryoSerializerTest { ...@@ -207,15 +207,13 @@ public class KryoSerializerTest {
207 final FlowRule rule1 = 207 final FlowRule rule1 =
208 new DefaultFlowRule(DID1, DefaultTrafficSelector.builder().build(), 208 new DefaultFlowRule(DID1, DefaultTrafficSelector.builder().build(),
209 DefaultTrafficTreatment.builder().build(), 0, 0, 0, true); 209 DefaultTrafficTreatment.builder().build(), 0, 0, 0, true);
210 - final FlowRule rule2 =
211 - new DefaultFlowRule(DID1, DefaultTrafficSelector.builder().build(),
212 - DefaultTrafficTreatment.builder().build(), 0, 0, 0, true);
213 final FlowRuleBatchEntry entry1 = 210 final FlowRuleBatchEntry entry1 =
214 new FlowRuleBatchEntry(FlowRuleBatchEntry.FlowRuleOperation.ADD, rule1); 211 new FlowRuleBatchEntry(FlowRuleBatchEntry.FlowRuleOperation.ADD, rule1);
215 final FlowRuleBatchEntry entry2 = 212 final FlowRuleBatchEntry entry2 =
216 - new FlowRuleBatchEntry(FlowRuleBatchEntry.FlowRuleOperation.ADD, rule2); 213 + new FlowRuleBatchEntry(FlowRuleBatchEntry.FlowRuleOperation.ADD, rule1, 100L);
217 214
218 - testSerializedEquals(ImmutableList.of(entry1, entry2)); 215 + testSerializedEquals(entry1);
216 + testSerializedEquals(entry2);
219 } 217 }
220 218
221 @Test 219 @Test
......