Remove netconf from commons/opendaylight pom
[controller.git] / opendaylight / netconf / tools / netconf-testtool / src / main / java / org / opendaylight / controller / netconf / test / tool / FakeModuleBuilderCapability.java
1 /*
2  * Copyright (c) 2015 Cisco Systems, 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
9 package org.opendaylight.controller.netconf.test.tool;
10
11 import com.google.common.base.Optional;
12 import org.opendaylight.yangtools.yang.parser.builder.impl.ModuleBuilder;
13
14 /**
15  * Can be passed instead of ModuleBuilderCapability when building capabilities
16  * in NetconfDeviceSimulator when testing various schema resolution related exceptions.
17  */
18 public class FakeModuleBuilderCapability extends ModuleBuilderCapability {
19
20     public FakeModuleBuilderCapability(final ModuleBuilder input, final String inputStream) {
21         super(input, inputStream);
22     }
23
24     /**
25      *
26      * @return empty schema source to trigger schema resolution exception.
27      */
28     @Override
29     public Optional<String> getCapabilitySchema() {
30         return Optional.absent();
31     }
32 }