e60cf7c1f546db7f38cd8bc96a68a543df61473f
[bgpcep.git] / bgp / rib-spi / src / test / java / org / opendaylight / protocol / bgp / rib / spi / AbstractRIBActivatorTest.java
1 /*
2  * Copyright (c) 2018 AT&T Intellectual Property. 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.protocol.bgp.rib.spi;
9
10 import org.opendaylight.mdsal.binding.dom.adapter.test.AbstractConcurrentDataBrokerTest;
11 import org.opendaylight.mdsal.binding.dom.adapter.test.AbstractDataBrokerTestCustomizer;
12 import org.opendaylight.mdsal.binding.dom.codec.api.BindingNormalizedNodeSerializer;
13
14 public abstract class AbstractRIBActivatorTest extends AbstractConcurrentDataBrokerTest {
15     protected BindingNormalizedNodeSerializer mappingService;
16
17     @Override
18     protected final AbstractDataBrokerTestCustomizer createDataBrokerTestCustomizer() {
19         final AbstractDataBrokerTestCustomizer customizer = super.createDataBrokerTestCustomizer();
20         this.mappingService = customizer.getBindingToNormalized();
21         return customizer;
22     }
23 }