Fix checkstyle whitespace issues - WHITESPACE ONLY
Change-Id: Ic205c1afd639c6008d61d9de95cb764eeb6238ca
diff --git a/src/test/java/net/onrc/onos/core/packet/LLDPOrganizationalTLVTest.java b/src/test/java/net/onrc/onos/core/packet/LLDPOrganizationalTLVTest.java
index ddb8bd5..f680e93 100644
--- a/src/test/java/net/onrc/onos/core/packet/LLDPOrganizationalTLVTest.java
+++ b/src/test/java/net/onrc/onos/core/packet/LLDPOrganizationalTLVTest.java
@@ -23,15 +23,15 @@
import org.junit.Test;
public class LLDPOrganizationalTLVTest {
- private final byte[] expected = new byte[] {
- // Type: 127, Length: 13
- (byte) 254, 13,
- // OpenFlow OUI: 00-26-E1
- 0x0, 0x26, (byte)0xe1,
- // SubType: 12
- 0xc,
- // Bytes in "ExtraInfo"
- 0x45, 0x78, 0x74, 0x72, 0x61, 0x49, 0x6e, 0x66, 0x6f
+ private final byte[] expected = new byte[]{
+ // Type: 127, Length: 13
+ (byte) 254, 13,
+ // OpenFlow OUI: 00-26-E1
+ 0x0, 0x26, (byte) 0xe1,
+ // SubType: 12
+ 0xc,
+ // Bytes in "ExtraInfo"
+ 0x45, 0x78, 0x74, 0x72, 0x61, 0x49, 0x6e, 0x66, 0x6f
};
@Test(expected = IllegalArgumentException.class)
@@ -70,14 +70,14 @@
LLDPOrganizationalTLV tlv = new LLDPOrganizationalTLV();
tlv.setLength((short) 13);
// OpenFlow OUI is 00-26-E1
- tlv.setOUI(new byte[] {0x0, 0x26, (byte) 0xe1});
+ tlv.setOUI(new byte[]{0x0, 0x26, (byte) 0xe1});
tlv.setSubType((byte) 12);
tlv.setInfoString("ExtraInfo".getBytes(Charset.forName("UTF-8")));
- assertThat(tlv.getType(), is((byte)127));
- assertThat(tlv.getLength(), is((short)13));
- assertThat(tlv.getOUI(), is(new byte[] {0x0, 0x26, (byte) 0xe1}));
- assertThat(tlv.getSubType(), is((byte)12));
+ assertThat(tlv.getType(), is((byte) 127));
+ assertThat(tlv.getLength(), is((short) 13));
+ assertThat(tlv.getOUI(), is(new byte[]{0x0, 0x26, (byte) 0xe1}));
+ assertThat(tlv.getSubType(), is((byte) 12));
assertThat(tlv.serialize(), is(expected));
}
@@ -86,10 +86,10 @@
LLDPOrganizationalTLV tlv = new LLDPOrganizationalTLV();
tlv.deserialize(ByteBuffer.wrap(expected));
- assertThat(tlv.getType(), is((byte)127));
- assertThat(tlv.getLength(), is((short)13));
- assertThat(tlv.getOUI(), is(new byte[] {0x0, 0x26, (byte) 0xe1}));
- assertThat(tlv.getSubType(), is((byte)12));
+ assertThat(tlv.getType(), is((byte) 127));
+ assertThat(tlv.getLength(), is((short) 13));
+ assertThat(tlv.getOUI(), is(new byte[]{0x0, 0x26, (byte) 0xe1}));
+ assertThat(tlv.getSubType(), is((byte) 12));
assertThat(tlv.getInfoString(), is("ExtraInfo".getBytes(Charset.forName("UTF-8"))));
}
}