2 * Copyright (c) 2016 Red Hat, Inc. and others. All rights reserved.
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
8 package org.opendaylight.netvirt.elanmanager.tests
10 import org.opendaylight.mdsal.binding.testutils.AssertDataObjects
11 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.PhysAddress
12 import org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.elan.rev150602.ElanInstancesBuilder
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.elan.rev150602.ElanInterfacesBuilder
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.elan.rev150602.elan.instances.ElanInstanceBuilder
15 import org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.elan.rev150602.elan.interfaces.ElanInterfaceBuilder
16 import org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.elan.rev150602.elan.interfaces.elan._interface.StaticMacEntriesBuilder;
18 import static extension org.opendaylight.mdsal.binding.testutils.XtendBuilderExtensions.operator_doubleGreaterThan
21 * Definitions of complex objects expected in tests.
23 * These were originally generated {@link AssertDataObjects#assertEqualBeans}.
25 class ExpectedObjects {
27 def static createElanInstance() {
28 new ElanInstancesBuilder >> [
30 new ElanInstanceBuilder >> [
31 description = "TestElan description"
32 elanInstanceName = "TestElanName"
40 def static addElanInterface() {
41 new ElanInterfacesBuilder >> [
43 new ElanInterfaceBuilder >> [
45 elanInstanceName = "TestElanName"
46 name = "TestElanInterfaceName"
48 new StaticMacEntriesBuilder >> [
49 macAddress = new PhysAddress("11:22:33:44:55:66")