package org.opendaylight.openflowplugin.extension.vendor.nicira.convertor.action;
-import static org.mockito.Mockito.when;
-
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
@Before
public void setUp() throws Exception {
NxDecNshTtl nxDecNshTtl = Mockito.mock(NxDecNshTtl.class);
- when(actionsCase.getNxDecNshTtl()).thenReturn(nxDecNshTtl);
NxActionDecNshTtl nxActionDecNshTtl = Mockito.mock(NxActionDecNshTtl.class);
ActionDecNshTtl actionDecNshTtl = Mockito.mock(ActionDecNshTtl.class);
- when(actionDecNshTtl.getNxActionDecNshTtl()).thenReturn(nxActionDecNshTtl);
- when(action.getActionChoice()).thenReturn(actionDecNshTtl);
decNshTtlConvertor = new DecNshTtlConvertor();
}