import org.opendaylight.yangtools.concepts.ListenerRegistration;
import org.opendaylight.yangtools.yang.binding.DataObject;
import org.opendaylight.yangtools.yang.common.RpcResult;
-import org.opendaylight.yangtools.yang.model.parser.api.YangParserException;
-import org.opendaylight.yangtools.yang.model.parser.api.YangParserFactory;
-import org.opendaylight.yangtools.yang.parser.impl.YangParserFactoryImpl;
+import org.opendaylight.yangtools.yang.parser.api.YangParserException;
+import org.opendaylight.yangtools.yang.parser.api.YangParserFactory;
+import org.opendaylight.yangtools.yang.parser.impl.DefaultYangParserFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
NotificationPublishService notificationPublishService = mock(NotificationPublishService.class);
RpcProviderService rpcProviderRegistry = mock(RpcProviderService.class);
IEntityDataProvider entityProviderMock = mock(IEntityDataProvider.class);
- YangParserFactory yangParserFactory = new YangParserFactoryImpl();
+ YangParserFactory yangParserFactory = new DefaultYangParserFactory();
BindingNormalizedNodeSerializer bindingNormalizedNodeSerializer =
new BindingCodecContext(BindingRuntimeHelpers.createRuntimeContext());
// start using blueprint interface
public static void after() throws InterruptedException, IOException {
System.out.println("Start shutdown");
// close using blueprint interface
- netconfStateService.close();
+ if(netconfStateService!=null) {
+ netconfStateService.close();
+ }
delete(KARAF_ETC);
}