Enable checkstyle in yang-model-util
[yangtools.git] / yang / yang-model-util / src / test / java / org / opendaylight / yangtools / yang / model / util / Int8Test.java
1 /*
2  * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.yangtools.yang.model.util;
9
10 import static org.junit.Assert.assertTrue;
11
12 import org.junit.Test;
13 import org.opendaylight.yangtools.yang.model.api.type.IntegerTypeDefinition;
14 import org.opendaylight.yangtools.yang.model.util.type.BaseTypes;
15
16 public class Int8Test {
17
18     @Test
19     public void testInt8() {
20         IntegerTypeDefinition int8 = BaseTypes.int8Type();
21         IntegerTypeDefinition int8Second = BaseTypes.int8Type();
22         assertTrue("The method 'getInstance()' has to return the same instance", int8 == int8Second);
23         assertTrue("The method 'getBaseType()' is returning incorrect value", int8.getBaseType() == null);
24         assertTrue("The method 'getDefaultType()' is returning incorrect value", int8.getDefaultValue() == null);
25     }
26 }