Remove use of xbase-lib in tests
[mdsal.git] / binding / mdsal-binding-test-utils / src / test / java / org / opendaylight / mdsal / binding / testutils / ExpectedObjects.java
1 /*
2  * Copyright (c) 2016 Red Hat, 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 package org.opendaylight.mdsal.binding.testutils;
9
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;
20
21 /**
22  * The object initialization code in this class was generated by AssertDataObjects.
23  *
24  * @see AssertDataObjects
25  * @see AssertDataObjectsTest
26  */
27 public final class ExpectedObjects {
28
29     private ExpectedObjects() {
30
31     }
32
33     public static TopLevelList topLevelList() {
34         TopLevelListBuilder it = new TopLevelListBuilder();
35         TopLevelListKey topLevelListKey = new TopLevelListKey("foo");
36         it.withKey(topLevelListKey);
37         it.setName("foo");
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);
45         return it.build();
46     }
47
48     public static Top top() {
49         return new TopBuilder()
50                 .setTopLevelList(Collections.singletonList(new TopLevelListBuilder()
51                     .setName("foo")
52                     .addAugmentation(TreeComplexUsesAugment.class, new TreeComplexUsesAugmentBuilder()
53                         .setContainerWithUses(new ContainerWithUsesBuilder().setLeafFromGrouping("foo").build())
54                         .build())
55                     .build()))
56                 .build();
57     }
58 }