Code Review
/
openflowjava.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Remove trailing whitespace
[openflowjava.git]
/
openflow-protocol-impl
/
src
/
test
/
java
/
org
/
opendaylight
/
openflowjava
/
protocol
/
impl
/
core
/
OFDecoderTest.java
diff --git
a/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/core/OFDecoderTest.java
b/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/core/OFDecoderTest.java
index 27a1bff46ec0b2e1be6f576751a0ce578273b00c..917f9b920f30543a5405529c30c34210d2b0a7ec 100644
(file)
--- a/
openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/core/OFDecoderTest.java
+++ b/
openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/core/OFDecoderTest.java
@@
-44,7
+44,7
@@
public class OFDecoderTest {
/**
* Sets up test environment
/**
* Sets up test environment
- *
+ *
*/
@Before
public void setUp() {
*/
@Before
public void setUp() {
@@
-57,7
+57,7
@@
public class OFDecoderTest {
}
/**
}
/**
- *
+ *
*/
@Test
public void testDecode() {
*/
@Test
public void testDecode() {
@@
-74,7
+74,7
@@
public class OFDecoderTest {
}
/**
}
/**
- *
+ *
*/
@Test
public void testDecodeDeserializeException() {
*/
@Test
public void testDecodeDeserializeException() {
@@
-84,17
+84,16
@@
public class OFDecoderTest {
try {
ofDecoder.decode(mockChHndlrCtx, inMsg, outList);
} catch (Exception e) {
try {
ofDecoder.decode(mockChHndlrCtx, inMsg, outList);
} catch (Exception e) {
- System.out.println("a");
Assert.fail();
}
// Verify that the message buf was released...
assertEquals( 0, outList.size() ) ;
Assert.fail();
}
// Verify that the message buf was released...
assertEquals( 0, outList.size() ) ;
- assertEquals(
1
, writeObj.refCnt() ) ;
+ assertEquals(
0
, writeObj.refCnt() ) ;
}
/**
}
/**
- *
+ *
*/
@Test
public void testDecodeDeserializeNull() {
*/
@Test
public void testDecodeDeserializeNull() {
@@
-109,6
+108,6
@@
public class OFDecoderTest {
// Verify that the message buf was released...
assertEquals( 0, outList.size() ) ;
// Verify that the message buf was released...
assertEquals( 0, outList.size() ) ;
- assertEquals(
1
, writeObj.refCnt() ) ;
+ assertEquals(
0
, writeObj.refCnt() ) ;
}
}
}
}