1 package org.opendaylight.yangtools.yang.model.util;
3 import static org.junit.Assert.*;
7 public class Int8Test {
10 public void testInt8() {
11 Int8 int8 = Int8.getInstance();
12 Int8 int8Second = Int8.getInstance();
13 assertTrue("The method 'getInstance()' has to return the same instance", int8 == int8Second);
14 assertTrue("The method 'getBaseType()' is returning incorrect value", int8.getBaseType() == null);
15 assertTrue("The method 'getDefaultType()' is returning incorrect value", int8.getDefaultValue() == null);
16 assertEquals("The method 'toString()' is returning incorrect value",
17 "type (urn:ietf:params:xml:ns:yang:1)int8", int8.toString());