import org.opendaylight.openflowjava.protocol.api.extensibility.OFDeserializer;
import org.opendaylight.openflowjava.protocol.spi.connection.SwitchConnectionProvider;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.action.rev150203.actions.grouping.Action;
+import org.opendaylight.yangtools.yang.common.Uint32;
@RunWith(MockitoJUnitRunner.class)
public class ActionDeserializerTest {
private static final short VERSION = 4;
- private static final long EXPERIMENT_ID = NiciraConstants.NX_VENDOR_ID;
+ private static final Uint32 EXPERIMENT_ID = NiciraConstants.NX_VENDOR_ID;
private static final byte SUBTYPE = 10;
@Before
actionDeserializer = new ActionDeserializer(VERSION);
buffer = ByteBufAllocator.DEFAULT.buffer();
providers = new LinkedList<>();
-
-
}
/**
//size of length
message.writeShort(13);
//experimentId
- message.writeInt((int)EXPERIMENT_ID);
+ message.writeInt(EXPERIMENT_ID.intValue());
//subtype
message.writeShort(SUBTYPE);
}