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 java.util.Collections;
11 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.mdsal.test.augment.rev140709.TreeComplexUsesAugment;
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.ContainerWithUses;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.mdsal.test.augment.rev140709.complex.from.grouping.ContainerWithUsesBuilder;
15 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.mdsal.test.binding.rev140701.Top;
16 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.mdsal.test.binding.rev140701.TopBuilder;
17 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.mdsal.test.binding.rev140701.two.level.list.TopLevelList;
18 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.mdsal.test.binding.rev140701.two.level.list.TopLevelListBuilder;
19 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.mdsal.test.binding.rev140701.two.level.list.TopLevelListKey;
22 * The object initialization code in this class was generated by AssertDataObjects.
24 * @see AssertDataObjects
25 * @see AssertDataObjectsTest
27 public final class ExpectedObjects {
29 private ExpectedObjects() {
33 public static TopLevelList topLevelList() {
34 TopLevelListBuilder it = new TopLevelListBuilder();
35 TopLevelListKey topLevelListKey = new TopLevelListKey("foo");
36 it.withKey(topLevelListKey);
38 TreeComplexUsesAugmentBuilder treeComplexUsesAugmentBuilder = new TreeComplexUsesAugmentBuilder();
39 ContainerWithUsesBuilder containerWithUsesBuilder = new ContainerWithUsesBuilder();
40 containerWithUsesBuilder.setLeafFromGrouping("foo");
41 ContainerWithUses containerWithUses = containerWithUsesBuilder.build();
42 treeComplexUsesAugmentBuilder.setContainerWithUses(containerWithUses);
43 TreeComplexUsesAugment treeComplexUsesAugment = treeComplexUsesAugmentBuilder.build();
44 it.addAugmentation(TreeComplexUsesAugment.class, treeComplexUsesAugment);
48 public static Top top() {
49 return new TopBuilder()
50 .setTopLevelList(Collections.singletonList(new TopLevelListBuilder()
52 .addAugmentation(TreeComplexUsesAugment.class, new TreeComplexUsesAugmentBuilder()
53 .setContainerWithUses(new ContainerWithUsesBuilder().setLeafFromGrouping("foo").build())