1 /* Copyright (C)2013 Pantheon Technologies, s.r.o. All rights reserved. */
\r
2 package org.opendaylight.openflowjava.protocol.impl.deserialization.factories;
\r
4 import io.netty.buffer.ByteBuf;
\r
6 import org.junit.Test;
\r
7 import org.opendaylight.openflowjava.protocol.impl.util.BufferHelper;
\r
8 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.BarrierOutput;
\r
11 * @author michal.polkorab
\r
12 * @author timotej.kubas
\r
14 public class BarrierReplyMessageFactoryTest {
\r
17 * Testing of {@link BarrierReplyMessageFactory} for correct translation into POJO
\r
20 public void test() {
\r
21 ByteBuf bb = BufferHelper.buildBuffer();
\r
22 BarrierOutput builtByFactory = BufferHelper.decodeV13(
\r
23 BarrierReplyMessageFactory.getInstance(), bb);
\r
25 BufferHelper.checkHeaderV13(builtByFactory);
\r