Unit tests for ofoverlay
[groupbasedpolicy.git] / renderers / ofoverlay / src / test / java / org / opendaylight / groupbasedpolicy / renderer / ofoverlay / equivalence / GroupEquivalenceTest.java
1 /*
2  * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8
9 package org.opendaylight.groupbasedpolicy.renderer.ofoverlay.equivalence;
10
11 import org.junit.Before;
12 import org.junit.Test;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.GroupBuilder;
15
16 public class GroupEquivalenceTest {
17
18     GroupEquivalence eq;
19
20     @Before
21     public void init() {
22         eq = new GroupEquivalence();
23     }
24
25     @Test
26     public void testDoEquivalent() {
27         Group a = new GroupBuilder().build();
28         Group b = new GroupBuilder().build();
29         eq.doEquivalent(a, b);
30     }
31
32     @Test
33     public void testDoHash() {
34
35         Group a = new GroupBuilder().build();
36         eq.doHash(a);
37     }
38
39 }