*/
package org.opendaylight.yangtools.yang.model.util;
-import org.junit.Test;
-import org.opendaylight.yangtools.yang.model.api.Status;
-
-import java.util.Collections;
-
import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
+import java.util.Collections;
+import org.junit.Test;
+import org.opendaylight.yangtools.yang.model.api.Status;
public class BooleanTypeTest {
assertEquals("Base type is null", null, boolType.getBaseType());
- assertEquals("Default value is false", false, boolType.getDefaultValue());
+ assertNull("Default value is null", boolType.getDefaultValue());
assertEquals("Status CURRENT", Status.CURRENT, boolType.getStatus());
assertEquals("Should contain empty list", Collections.EMPTY_LIST, boolType.getUnknownSchemaNodes());
}
-}
\ No newline at end of file
+}
assertEquals("/container-test/leaf-test", leafrefEff.getPathStatement().toString());
assertNull(leafrefEff.getBaseType());
assertEquals("", leafrefEff.getUnits());
- assertEquals("leafref", ((LeafrefSpecificationEffectiveStatementImpl) leafrefEff.getDefaultValue()).argument());
+ assertNull("leafref", leafrefEff.getDefaultValue());
assertNotNull(leafrefEff.toString());
assertEquals("leafref", leafrefEff.getQName().getLocalName());
assertEquals("CURRENT", leafrefEff.getStatus().toString());
assertEquals(1, stringEff.getLengthConstraints().size());
assertNotNull(stringEff.getPatternConstraints());
}
-}
\ No newline at end of file
+}