1 package org.opendaylight.yangtools.yang.model.util;
3 import static org.junit.Assert.*;
6 public class Int8Test {
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());