Modify unit test for serializing FlowRuleBatchEntry
Change-Id: Ifdd3b7fcbb37a9d304154c46ad2628aead626a00
diff --git a/core/store/serializers/src/test/java/org/onosproject/store/serializers/KryoSerializerTest.java b/core/store/serializers/src/test/java/org/onosproject/store/serializers/KryoSerializerTest.java
index a2ceb39..86ed13f 100644
--- a/core/store/serializers/src/test/java/org/onosproject/store/serializers/KryoSerializerTest.java
+++ b/core/store/serializers/src/test/java/org/onosproject/store/serializers/KryoSerializerTest.java
@@ -207,15 +207,13 @@
final FlowRule rule1 =
new DefaultFlowRule(DID1, DefaultTrafficSelector.builder().build(),
DefaultTrafficTreatment.builder().build(), 0, 0, 0, true);
- final FlowRule rule2 =
- new DefaultFlowRule(DID1, DefaultTrafficSelector.builder().build(),
- DefaultTrafficTreatment.builder().build(), 0, 0, 0, true);
final FlowRuleBatchEntry entry1 =
new FlowRuleBatchEntry(FlowRuleBatchEntry.FlowRuleOperation.ADD, rule1);
final FlowRuleBatchEntry entry2 =
- new FlowRuleBatchEntry(FlowRuleBatchEntry.FlowRuleOperation.ADD, rule2);
+ new FlowRuleBatchEntry(FlowRuleBatchEntry.FlowRuleOperation.ADD, rule1, 100L);
- testSerializedEquals(ImmutableList.of(entry1, entry2));
+ testSerializedEquals(entry1);
+ testSerializedEquals(entry2);
}
@Test