Remove SchemaPath from TypeDefinition implementations
[yangtools.git] / yang / yang-model-util / src / test / java / org / opendaylight / yangtools / yang / model / util / BinaryTypeTest.java
index 8cf01ae3e30387c579368e472cc47bff6fe3c21c..a5283e97cbffa4093b74c382652688333d2e51bf 100644 (file)
@@ -12,14 +12,12 @@ import static org.junit.Assert.assertFalse;
 import static org.junit.Assert.assertTrue;
 import static org.opendaylight.yangtools.yang.model.util.type.BaseTypes.binaryType;
 
-import java.util.Collections;
 import java.util.Optional;
 import org.junit.Test;
 import org.opendaylight.yangtools.yang.model.api.Status;
 import org.opendaylight.yangtools.yang.model.api.type.BinaryTypeDefinition;
 
 public class BinaryTypeTest {
-
     @Test
     public void canCreateBinaryType() {
         final BinaryTypeDefinition binType = binaryType();
@@ -31,8 +29,6 @@ public class BinaryTypeTest {
         assertEquals("Base type is null", null, binType.getBaseType());
         assertEquals("getQName gives BINARY_QNAME", BaseTypes.BINARY_QNAME, binType.getQName());
         assertEquals(Optional.empty(), binType.getUnits());
-        assertEquals("getPath gives List of BINARY_QNAME", Collections.singletonList(BaseTypes.BINARY_QNAME),
-            binType.getPath().getPathFromRoot());
 
         assertTrue("binType1 should equal to binType", binType.equals(binType1) && binType1.equals(binType));
         assertTrue("Hash code of binType and binType1 should be equal",
@@ -41,5 +37,4 @@ public class BinaryTypeTest {
         assertFalse("binType shouldn't equal to null", binType.equals(null));
         assertFalse("binType shouldn't equal to object of other type", binType.equals("str"));
     }
-
 }