blob: 4dfe961539d4dcd05157f00f7061c647825a0af8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
package org.onlab.jdvue;
import com.google.common.testing.EqualsTester;
import org.junit.Test;
import org.onlab.jdvue.Dependency;
import org.onlab.jdvue.JavaPackage;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotEquals;
/**
* Unit test for the dependency entity.
*
* @author Thomas Vachuska
*/
public class DependencyTest {
@Test
public void basics() {
JavaPackage x = new JavaPackage("x");
JavaPackage y = new JavaPackage("y");
new EqualsTester()
.addEqualityGroup(new Dependency(x, y), new Dependency(x, y))
.addEqualityGroup(new Dependency(y, x), new Dependency(y, x))
.testEquals();
}
}
|