-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.
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