Fixing sonar issues 4
[yangtools.git] / yang / yang-model-util / src / test / java / org / opendaylight / yangtools / yang / model / util / Int8Test.java
1 package org.opendaylight.yangtools.yang.model.util;
2
3 import static org.junit.Assert.*;
4 import org.junit.Test;
5
6 public class Int8Test {
7
8     @Test
9     public void testInt8() {
10         Int8 int8 = Int8.getInstance();
11         Int8 int8Second = Int8.getInstance();
12         assertTrue("The method 'getInstance()' has to return the same instance", int8 == int8Second);
13         assertTrue("The method 'getBaseType()' is returning incorrect value", int8.getBaseType() == int8);
14         assertTrue("The method 'getDefaultType()' is returning incorrect value", int8.getDefaultValue() == null);
15         assertEquals("The method 'toString()' is returning incorrect value",
16                 "type (urn:ietf:params:xml:ns:yang:1)int8", int8.toString());
17
18     }
19
20 }