Cleanup codecs a bit
[yangtools.git] / yang / yang-data-impl / src / test / java / org / opendaylight / yangtools / yang / data / impl / codecs / BooleanCodecStringTest.java
index 66f7ba0c6945bfcc5c464b940dd38eff5334307e..b1e878bef782ee4e44fefa2d3033ab35483ca02c 100644 (file)
@@ -9,6 +9,7 @@
 package org.opendaylight.yangtools.yang.data.impl.codecs;
 
 import static org.junit.Assert.assertEquals;
+
 import org.junit.Test;
 import org.opendaylight.yangtools.yang.data.api.codec.BooleanCodec;
 import org.opendaylight.yangtools.yang.model.util.type.BaseTypes;
@@ -23,17 +24,19 @@ public class BooleanCodecStringTest {
     @SuppressWarnings("unchecked")
     @Test
     public void testSerialize() {
-        BooleanCodec<String> codec = TypeDefinitionAwareCodecTestHelper.getCodec(BaseTypes.booleanType(), BooleanCodec.class);
+        BooleanCodec<String> codec = TypeDefinitionAwareCodecTestHelper.getCodec(BaseTypes.booleanType(),
+            BooleanCodec.class);
 
         assertEquals("serialize", "", codec.serialize(null));
-        assertEquals("serialize", "true", codec.serialize(true));
-        assertEquals("serialize", "false", codec.serialize(false));
+        assertEquals("serialize", "true", codec.serialize(Boolean.TRUE));
+        assertEquals("serialize", "false", codec.serialize(Boolean.FALSE));
     }
 
     @SuppressWarnings("unchecked")
     @Test
     public void testDeserialize() {
-        BooleanCodec<String> codec = TypeDefinitionAwareCodecTestHelper.getCodec(BaseTypes.booleanType(), BooleanCodec.class);
+        BooleanCodec<String> codec = TypeDefinitionAwareCodecTestHelper.getCodec(BaseTypes.booleanType(),
+            BooleanCodec.class);
 
         assertEquals("deserialize", Boolean.TRUE, codec.deserialize("true"));
         assertEquals("deserialize", Boolean.TRUE, codec.deserialize("TRUE"));