X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=code-generator%2Fbinding-type-provider%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Fsal%2Fbinding%2Fyang%2Ftypes%2FNodeWrappedTypeTest.java;fp=code-generator%2Fbinding-type-provider%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Fsal%2Fbinding%2Fyang%2Ftypes%2FNodeWrappedTypeTest.java;h=0000000000000000000000000000000000000000;hb=240aa30062029ddc8ac4cefaf19daeaa09025902;hp=e6d895d69eef48e418ffc0bed72d0d548f434596;hpb=fd5fa735b663df913f24bd1b50066dbd9e9d0370;p=yangtools.git diff --git a/code-generator/binding-type-provider/src/test/java/org/opendaylight/yangtools/sal/binding/yang/types/NodeWrappedTypeTest.java b/code-generator/binding-type-provider/src/test/java/org/opendaylight/yangtools/sal/binding/yang/types/NodeWrappedTypeTest.java deleted file mode 100644 index e6d895d69e..0000000000 --- a/code-generator/binding-type-provider/src/test/java/org/opendaylight/yangtools/sal/binding/yang/types/NodeWrappedTypeTest.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - */ -package org.opendaylight.yangtools.sal.binding.yang.types; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertTrue; - -import org.junit.Test; - -public class NodeWrappedTypeTest { - - @Test - public void test() { - NodeWrappedType nwt1 = new NodeWrappedType("obj1"); - NodeWrappedType nwt2 = new NodeWrappedType("obj2"); - NodeWrappedType nwt3 = new NodeWrappedType("obj1"); - String str = "obj3"; - - assertTrue("Node nwt1 should equal to itself.", nwt1.equals(nwt1)); - assertFalse("It can't be possible to compare nwt with string.", nwt1.equals(str)); - assertFalse("nwt1 shouldn't equal to nwt2.", nwt1.equals(nwt2)); - assertTrue("Node nwt1 should equal to nwt3.", nwt1.equals(nwt3)); - - assertEquals("toString method is returning incorrect value.", "NodeWrappedType{wrappedType=obj1}", - nwt1.toString()); - } -}