*
* @author Michael Vorburger
*/
+@Deprecated(since = "8.0.9", forRemoval = true)
public final class AssertDataObjects {
-
private static final Logger LOG = LoggerFactory.getLogger(AssertDataObjects.class);
-
private static final XtendYangBeanGenerator GENERATOR = new XtendYangBeanGenerator();
private AssertDataObjects() {
+ // Hidden on purpose
}
/**
* <p>See also org.eclipse.xtext.xbase.lib.ObjectExtensions.operator_doubleArrow for background.
*
* @author Michael Vorburger
+ * @deprecated This class is not needed and will be removed in the next release.
*/
+@Deprecated(since = "8.0.9", forRemoval = true)
public final class XtendBuilderExtensions {
-
private XtendBuilderExtensions() {
-
+ // Hidden on purpose
}
- public static <P extends Object, T extends Builder<P>> P operator_doubleGreaterThan(
- final T object, final Procedure1<? super T> block) {
-
+ public static <P extends Object, T extends Builder<P>> P operator_doubleGreaterThan(final T object,
+ final Procedure1<? super T> block) {
block.apply(object);
return object.build();
}
* @author Michael Vorburger
*/
// package-local: no need to expose this, consider it an implementation detail; public API is the AssertDataObjects
+@Deprecated(since = "8.0.9", forRemoval = true)
class XtendYangBeanGenerator extends XtendBeanGenerator {
@Override
*
* @author Michael Vorburger
*/
+@Deprecated(since = "8.0.9", forRemoval = true)
public class AssertDataObjectsTest extends AbstractDataBrokerTest {
-
private static final String HEADER = "import static extension org.opendaylight.mdsal.binding.testutils."
+ "XtendBuilderExtensions.operator_doubleGreaterThan\n\n";
AssertDataObjects.assertEqualByText(expectedTopText, actualTop);
}
- <T extends DataObject> void put(WriteTransaction tx, LogicalDatastoreType store,
- Entry<InstanceIdentifier<T>, T> obj) {
+ <T extends DataObject> void put(final WriteTransaction tx, final LogicalDatastoreType store,
+ final Entry<InstanceIdentifier<T>, T> obj) {
tx.put(OPERATIONAL, obj.getKey(), obj.getValue());
}
*
* @author Michael Vorburger
*/
+@Deprecated(since = "8.0.9", forRemoval = true)
public class AssertNonDataObjectsTest {
public static class SomeBean {
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.mdsal.test.binding.rev140701.two.level.list.TopLevelList;
import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
+@Deprecated(since = "8.0.9", forRemoval = true)
public final class ExampleYangObjects {
private ExampleYangObjects() {
-
+ // Hidden on purpose
}
public static AbstractMap.SimpleImmutableEntry<InstanceIdentifier<Top>, Top> topEmpty() {
*/
package org.opendaylight.mdsal.binding.testutils;
-import com.google.common.collect.Maps;
-import java.util.Collections;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.mdsal.test.augment.rev140709.TreeComplexUsesAugmentBuilder;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.mdsal.test.augment.rev140709.complex.from.grouping.ContainerWithUsesBuilder;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.mdsal.test.binding.rev140701.Top;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.mdsal.test.binding.rev140701.two.level.list.TopLevelList;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.mdsal.test.binding.rev140701.two.level.list.TopLevelListBuilder;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.mdsal.test.binding.rev140701.two.level.list.TopLevelListKey;
+import org.opendaylight.yangtools.yang.binding.util.BindingMap;
/**
* The object initialization code in this class was generated by AssertDataObjects.
* @see AssertDataObjects
* @see AssertDataObjectsTest
*/
+@Deprecated(since = "8.0.9", forRemoval = true)
public final class ExpectedObjects {
private ExpectedObjects() {
-
+ // Hidden on purpose
}
public static TopLevelList topLevelList() {
public static Top top() {
return new TopBuilder()
- .setTopLevelList(Maps.uniqueIndex(Collections.singletonList(new TopLevelListBuilder()
+ .setTopLevelList(BindingMap.of(new TopLevelListBuilder()
.setName("foo")
.addAugmentation(new TreeComplexUsesAugmentBuilder()
.setContainerWithUses(new ContainerWithUsesBuilder().setLeafFromGrouping("foo").build())
.build())
- .build()), TopLevelList::key))
+ .build()))
.build();
}
}
*
* @author Michael Vorburger
*/
+@Deprecated(since = "8.0.9", forRemoval = true)
public class UnionTest {
@Test
public void testUnionType() {