Unit tests for ofoverlay
[groupbasedpolicy.git] / renderers / ofoverlay / src / test / java / org / opendaylight / groupbasedpolicy / renderer / ofoverlay / equivalence / BucketsEquivalenceTest.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.group.Buckets;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.group.BucketsBuilder;
15 import org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group;
16 import org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.GroupBuilder;
17
18 public class BucketsEquivalenceTest {
19     BucketsEquivalence eq;
20
21     @Before
22     public void init() {
23         eq = new BucketsEquivalence();
24     }
25
26     @Test
27     public void testDoEquivalent() {
28         Buckets a = new BucketsBuilder().build();
29         Buckets b = new BucketsBuilder().build();
30         eq.doEquivalent(a, b);
31     }
32
33     @Test
34     public void testDoHash() {
35         Buckets a = new BucketsBuilder().build();
36         eq.doHash(a);
37     }
38
39 }