blob: 5da8a86ef27a9c42764deae5543c75e03c8d6da4 [file] [log] [blame]
Thomas Vachuska58de4162015-09-10 16:15:33 -07001/*
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 * Copyright 2015-present Open Networking Laboratory
Thomas Vachuska58de4162015-09-10 16:15:33 -07003 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
Thomas Vachuska6b331262015-04-27 11:09:07 -070016package org.onlab.jdvue;
17
18import com.google.common.testing.EqualsTester;
19import org.junit.Test;
20import org.onlab.jdvue.Dependency;
21import org.onlab.jdvue.JavaPackage;
22
23import static org.junit.Assert.assertEquals;
24import static org.junit.Assert.assertNotEquals;
25
26/**
27 * Unit test for the dependency entity.
28 *
29 * @author Thomas Vachuska
30 */
31public class DependencyTest {
32
33 @Test
34 public void basics() {
35 JavaPackage x = new JavaPackage("x");
36 JavaPackage y = new JavaPackage("y");
37
38 new EqualsTester()
39 .addEqualityGroup(new Dependency(x, y), new Dependency(x, y))
40 .addEqualityGroup(new Dependency(y, x), new Dependency(y, x))
41 .testEquals();
42 }
43
44}