commit | e9b7a02ff9d5a0e2f62004eccb26ed9280990f97 | [log] [tgz] |
---|---|---|
author | Jimmy Jin <jjin95032@gmail.com> | Fri Aug 12 16:56:48 2016 -0700 |
committer | Thomas Vachuska <tom@onlab.us> | Fri May 19 15:40:12 2017 +0000 |
tree | 4b92fa14b6924ebca5dbe4e9145e00bf279b51f7 | |
parent | 239f09e2f920a3ab0f15a90e88fdc6c3701f2403 [diff] [blame] |
OpenFlow message processing for new loxi Depends-On: Id69c8597eb4564653c56cdc90f2dcec50afbdd25 Change-Id: Ib14fbadd3debf98ce1d56343179f8e7929f8ade8
diff --git a/protocols/openflow/ctl/src/test/java/org/onosproject/openflow/controller/impl/OFMessageEncoderTest.java b/protocols/openflow/ctl/src/test/java/org/onosproject/openflow/controller/impl/OFMessageEncoderTest.java index 43b5f3d..e62345c 100644 --- a/protocols/openflow/ctl/src/test/java/org/onosproject/openflow/controller/impl/OFMessageEncoderTest.java +++ b/protocols/openflow/ctl/src/test/java/org/onosproject/openflow/controller/impl/OFMessageEncoderTest.java
@@ -18,6 +18,7 @@ import java.nio.charset.StandardCharsets; import java.util.List; +import io.netty.buffer.ByteBuf; import org.jboss.netty.buffer.ChannelBuffer; import org.junit.Test; import org.onosproject.openflow.OfMessageAdapter; @@ -45,9 +46,9 @@ } @Override - public void writeTo(ChannelBuffer channelBuffer) { + public void writeTo(ByteBuf byteBuf) { String message = "message" + Integer.toString(id) + " "; - channelBuffer.writeBytes(message.getBytes(StandardCharsets.UTF_8)); + byteBuf.writeBytes(message.getBytes(StandardCharsets.UTF_8)); } }