Search in sources :

Example 6 with SchemaSourceRepresentation

use of org.opendaylight.yangtools.yang.model.repo.api.SchemaSourceRepresentation in project netconf by opendaylight.

the class NetconfDeviceTest method getSchemaRepository.

private static SchemaRepository getSchemaRepository() {
    final SchemaRepository mock = mock(SchemaRepository.class);
    final SchemaSourceRepresentation mockRep = mock(SchemaSourceRepresentation.class);
    doReturn(Futures.immediateFuture(mockRep)).when(mock).getSchemaSource(any(SourceIdentifier.class), eq(YangTextSchemaSource.class));
    return mock;
}
Also used : YangTextSchemaSource(org.opendaylight.yangtools.yang.model.repo.api.YangTextSchemaSource) SourceIdentifier(org.opendaylight.yangtools.yang.model.repo.api.SourceIdentifier) RevisionSourceIdentifier(org.opendaylight.yangtools.yang.model.repo.api.RevisionSourceIdentifier) SchemaSourceRepresentation(org.opendaylight.yangtools.yang.model.repo.api.SchemaSourceRepresentation) SchemaRepository(org.opendaylight.yangtools.yang.model.repo.api.SchemaRepository)

Aggregations

SchemaSourceRepresentation (org.opendaylight.yangtools.yang.model.repo.api.SchemaSourceRepresentation)6 YangTextSchemaSource (org.opendaylight.yangtools.yang.model.repo.api.YangTextSchemaSource)3 PotentialSchemaSource (org.opendaylight.yangtools.yang.model.repo.spi.PotentialSchemaSource)3 SchemaSourceListener (org.opendaylight.yangtools.yang.model.repo.spi.SchemaSourceListener)3 File (java.io.File)2 MissingSchemaSourceException (org.opendaylight.yangtools.yang.model.repo.api.MissingSchemaSourceException)2 RevisionSourceIdentifier (org.opendaylight.yangtools.yang.model.repo.api.RevisionSourceIdentifier)2 SourceIdentifier (org.opendaylight.yangtools.yang.model.repo.api.SourceIdentifier)2 SharedSchemaRepository (org.opendaylight.yangtools.yang.parser.repo.SharedSchemaRepository)2 ArrayList (java.util.ArrayList)1 HashSet (java.util.HashSet)1 List (java.util.List)1 ExecutionException (java.util.concurrent.ExecutionException)1 Before (org.junit.Before)1 Test (org.junit.Test)1 BasicCapability (org.opendaylight.netconf.api.capability.BasicCapability)1 Capability (org.opendaylight.netconf.api.capability.Capability)1 YangModuleCapability (org.opendaylight.netconf.api.capability.YangModuleCapability)1 SchemaSourceCache (org.opendaylight.netconf.test.tool.schemacache.SchemaSourceCache)1 Module (org.opendaylight.yangtools.yang.model.api.Module)1