Require SchemaSourceRepresentation.getSymbolicName()
[yangtools.git] / yang / yang-repo-fs / src / test / java / org / opendaylight / yangtools / yang / model / repo / fs / FilesystemSchemaSourceCacheTest.java
index 54ccc2ad0bb84dcaa8a4047f0c517ddec3671728..91f27b6c8dbbba7a47079dfd51dbed1cda1d0d5b 100644 (file)
@@ -33,6 +33,7 @@ import java.nio.charset.StandardCharsets;
 import java.util.Arrays;
 import java.util.Collection;
 import java.util.List;
+import java.util.Optional;
 import java.util.concurrent.ExecutionException;
 import org.junit.Before;
 import org.junit.Test;
@@ -224,7 +225,6 @@ public class FilesystemSchemaSourceCacheTest {
     }
 
     private class TestingYangSource extends YangTextSchemaSource {
-
         private final String content;
 
         TestingYangSource(final String name, final String revision, final String content) {
@@ -241,5 +241,10 @@ public class FilesystemSchemaSourceCacheTest {
         public InputStream openStream() throws IOException {
             return new ByteArrayInputStream(this.content.getBytes(StandardCharsets.UTF_8));
         }
+
+        @Override
+        public Optional<String> getSymbolicName() {
+            return Optional.empty();
+        }
     }
 }