Convert yanglib to new web API
[netconf.git] / netconf / yanglib / src / test / java / org / opendaylight / yanglib / impl / YangLibServiceImplTest.java
index 4c9338e1e7b8bc2ef77de8bfa5de71ac5488f991..c6848102d7ffe58d165a5e6eda8bd82786b8e0f2 100644 (file)
@@ -36,8 +36,7 @@ public class YangLibServiceImplTest {
     public void testSchema() throws SchemaSourceException {
 
         final SchemaRepository schemaRepository = mock(SchemaRepository.class);
-        final YangLibServiceImpl yangLibService = new YangLibServiceImpl();
-        yangLibService.setSchemaRepository(schemaRepository);
+        final YangLibServiceImpl yangLibService = new YangLibServiceImpl(schemaRepository);
 
         final SourceIdentifier sourceIdentifier = RevisionSourceIdentifier.create("name", Revision.of("2016-01-01"));