2 * Copyright (c) 2019 PANTHEON.tech, s.r.o. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.yangtools.yang.data.codec.binfmt;
10 import java.util.Arrays;
11 import org.junit.Test;
12 import org.junit.runner.RunWith;
13 import org.junit.runners.Parameterized;
14 import org.junit.runners.Parameterized.Parameter;
15 import org.junit.runners.Parameterized.Parameters;
17 @RunWith(Parameterized.class)
18 public class BooleanSerializationTest extends AbstractSerializationTest {
19 @Parameters(name = "{0}")
20 public static Iterable<Object[]> data() {
22 new Object[] { NormalizedNodeStreamVersion.LITHIUM, 97 },
23 new Object[] { NormalizedNodeStreamVersion.NEON_SR2, 99 },
24 new Object[] { NormalizedNodeStreamVersion.SODIUM_SR1, 96 },
25 new Object[] { NormalizedNodeStreamVersion.MAGNESIUM, 96 });
32 public void testTrue() {
33 assertEquals(Boolean.TRUE, size);
37 public void testFalse() {
38 assertEquals(Boolean.FALSE, size);