use of org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.action.GroupActionCase in project genius by opendaylight.
the class ActionGroupTest method actionInfoTestForGroupAction.
@Test
public void actionInfoTestForGroupAction() {
ActionInfo actionInfo = new ActionGroup(123);
Action action = actionInfo.buildAction();
assertTrue(action.getAction() instanceof GroupActionCase);
GroupActionCase actionCase = (GroupActionCase) action.getAction();
assertEquals(123L, (long) actionCase.getGroupAction().getGroupId());
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.action.GroupActionCase in project genius by opendaylight.
the class InstructionWriteActionsTest method verifyInstructionInfo.
private void verifyInstructionInfo(InstructionInfo instructionInfo) {
Instruction instruction = instructionInfo.buildInstruction(2);
assertEquals(2, instruction.getKey().getOrder().intValue());
assertTrue(instruction.getInstruction() instanceof WriteActionsCase);
WriteActionsCase writeActionsCase = (WriteActionsCase) instruction.getInstruction();
List<Action> actions = writeActionsCase.getWriteActions().getAction();
assertEquals(1, actions.size());
Action action = actions.get(0);
assertTrue(action.getAction() instanceof GroupActionCase);
}
Aggregations