* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.openflowplugin.extension.vendor.nicira.convertor.match;
import static org.junit.Assert.assertEquals;
.getNxmNxNshFlags().getNshFlags());
assertEquals(MASK_VALUE, ((NxAugMatchNotifPacketIn) extensionAugment.getAugmentationObject())
.getNxmNxNshFlags().getMask());
- assertEquals(extensionAugment.getKey(), NxmNxNshFlagsKey.class);
+ assertEquals(NxmNxNshFlagsKey.VALUE, extensionAugment.getKey());
final ExtensionAugment<? extends Augmentation<Extension>> extensionAugment1 = convertor.convert(matchEntry,
MatchPath.SWITCH_FLOW_REMOVED_MATCH);
.getNxmNxNshFlags().getNshFlags());
assertEquals(MASK_VALUE, ((NxAugMatchNotifSwitchFlowRemoved) extensionAugment1.getAugmentationObject())
.getNxmNxNshFlags().getMask());
- assertEquals(extensionAugment.getKey(), NxmNxNshFlagsKey.class);
+ assertEquals(NxmNxNshFlagsKey.VALUE, extensionAugment.getKey());
final ExtensionAugment<? extends Augmentation<Extension>> extensionAugment2 = convertor.convert(matchEntry,
MatchPath.FLOWS_STATISTICS_UPDATE_MATCH);
.getNxmNxNshFlags().getNshFlags());
assertEquals(MASK_VALUE, ((NxAugMatchNodesNodeTableFlow) extensionAugment2.getAugmentationObject())
.getNxmNxNshFlags().getMask());
- assertEquals(extensionAugment.getKey(), NxmNxNshFlagsKey.class);
+ assertEquals(NxmNxNshFlagsKey.VALUE, extensionAugment.getKey());
final ExtensionAugment<? extends Augmentation<Extension>> extensionAugment3 = convertor.convert(matchEntry,
MatchPath.FLOWS_STATISTICS_RPC_MATCH);
.getNxmNxNshFlags().getNshFlags());
assertEquals(MASK_VALUE, ((NxAugMatchRpcGetFlowStats) extensionAugment3.getAugmentationObject())
.getNxmNxNshFlags().getMask());
- assertEquals(extensionAugment.getKey(), NxmNxNshFlagsKey.class);
+ assertEquals(NxmNxNshFlagsKey.VALUE, extensionAugment.getKey());
}
}
\ No newline at end of file