2 * Copyright (c) 2015 Cisco Systems, 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
9 package org.opendaylight.controller.netconf.test.tool;
11 import com.google.common.base.Optional;
12 import org.opendaylight.yangtools.yang.parser.builder.impl.ModuleBuilder;
15 * Can be passed instead of ModuleBuilderCapability when building capabilities
16 * in NetconfDeviceSimulator when testing various schema resolution related exceptions.
18 public class FakeModuleBuilderCapability extends ModuleBuilderCapability {
20 public FakeModuleBuilderCapability(final ModuleBuilder input, final String inputStream) {
21 super(input, inputStream);
26 * @return empty schema source to trigger schema resolution exception.
29 public Optional<String> getCapabilitySchema() {
30 return Optional.absent();