Added the copyright marks
[nemo.git] / nemo-impl / src / test / java / org / opendaylight / nemo / intent / algorithm / EdgeTest.java
index cb08468dcb8b99536139dcd7a144f8f1deb6045e..cdc7d3cadf7fd98bff3c7cec77d389c39a477439 100644 (file)
@@ -1,12 +1,17 @@
-package org.test;
+/*
+ * Copyright (c) 2015 Huawei, 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.nemo.intent.algorithm;
 
 import junit.framework.TestCase;
+
 import org.junit.Assert;
 import org.junit.Before;
 import org.junit.Test;
-import org.opendaylight.nemo.intent.algorithm.Edge;
-
-import static org.junit.Assert.*;
 
 /**
  * Created by zhangmeng on 2015/11/5.
@@ -101,9 +106,15 @@ public class EdgeTest extends TestCase {
         metric = bandwidth = 1;
         edge = new Edge(id,src,dest,metric,bandwidth);
 
+        Edge edge1= new Edge("test1","test1","test1",1,1);
+
         Assert.assertTrue(obj.getId().equals(edge.getId()));
         Assert.assertTrue(obj.getSrc().equals(edge.getSrc()));
         Assert.assertTrue(obj.getDest().equals(edge.getDest()));
+        Assert.assertTrue(obj.equals(obj));
+        Assert.assertTrue(!obj.equals(edge1));
+
+
     }
 
     @Test