package org.opendaylight.yangtools.yang.model.repo.util;
import static org.mockito.Matchers.any;
+import static org.mockito.Mockito.doNothing;
import static org.mockito.Mockito.doReturn;
import com.google.common.base.MoreObjects;
@Before
public void setUp() throws Exception {
- doReturn(this.registration).when(this.registry).registerSchemaSource(any(SchemaSourceProvider.class),
+ doNothing().when(registration).close();
+ doReturn(registration).when(registry).registerSchemaSource(any(SchemaSourceProvider.class),
any(PotentialSchemaSource.class));
}
}
@Test
- public void inMemorySchemaSourceCache3test() throws Exception {
+ public void inMemorySchemaSourceCache3test() throws InterruptedException, ExecutionException {
final InMemorySchemaSourceCache<YangSchemaSourceRepresentation> inMemorySchemaSourceCache =
InMemorySchemaSourceCache.createSoftCache(this.registry, REPRESENTATION);
final InMemorySchemaSourceCache<YangSchemaSourceRepresentation> inMemorySchemaSourceCache2 =