use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.nicira.action.rev140714.nx.action.resubmit.grouping.NxResubmit in project openflowplugin by opendaylight.
the class ResubmitConvertorTest method setUp.
@Before
public void setUp() throws Exception {
final NxResubmit nxResubmit = Mockito.mock(NxResubmit.class);
when(actionsCase.getNxResubmit()).thenReturn(nxResubmit);
when(nxResubmit.getInPort()).thenReturn(1);
when(nxResubmit.getTable()).thenReturn((short) 2);
final ActionResubmit actionResubmit = Mockito.mock(ActionResubmit.class);
final NxActionResubmit nxActionResubmit = Mockito.mock(NxActionResubmit.class);
when(nxActionResubmit.getInPort()).thenReturn(3);
when(nxActionResubmit.getTable()).thenReturn((short) 4);
when(actionResubmit.getNxActionResubmit()).thenReturn(nxActionResubmit);
when(action.getActionChoice()).thenReturn(actionResubmit);
resubmitConvertor = new ResubmitConvertor();
}
Aggregations