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.mdsal.binding.testutils;
10 import com.google.common.collect.Maps;
11 import java.util.Collections;
12 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.mdsal.test.augment.rev140709.TreeComplexUsesAugmentBuilder;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.mdsal.test.augment.rev140709.complex.from.grouping.ContainerWithUsesBuilder;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.mdsal.test.binding.rev140701.Top;
15 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.mdsal.test.binding.rev140701.TopBuilder;
16 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.mdsal.test.binding.rev140701.two.level.list.TopLevelList;
17 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.mdsal.test.binding.rev140701.two.level.list.TopLevelListBuilder;
18 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.mdsal.test.binding.rev140701.two.level.list.TopLevelListKey;
21 * The object initialization code in this class was generated by AssertDataObjects.
23 * @see AssertDataObjects
24 * @see AssertDataObjectsTest
26 public final class ExpectedObjects {
28 private ExpectedObjects() {
32 public static TopLevelList topLevelList() {
33 return new TopLevelListBuilder()
34 .withKey(new TopLevelListKey("foo"))
36 .addAugmentation(new TreeComplexUsesAugmentBuilder()
37 .setContainerWithUses(new ContainerWithUsesBuilder().setLeafFromGrouping("foo").build())
42 public static Top top() {
43 return new TopBuilder()
44 .setTopLevelList(Maps.uniqueIndex(Collections.singletonList(new TopLevelListBuilder()
46 .addAugmentation(new TreeComplexUsesAugmentBuilder()
47 .setContainerWithUses(new ContainerWithUsesBuilder().setLeafFromGrouping("foo").build())
49 .build()), TopLevelList::key))