test_class.declarator: logTester = new LogTester()
test_class.modifier: @Rule
      public
test_class.original_string: @Rule
      public LogTester logTester = new LogTester();
test_class.type: LogTester
test_class.var_name: logTester
test_class.file: sonar-ansible-api/src/test/java/com/github/sbaudoin/sonar/plugins/ansible/util/FileSystemTest.java
test_class.identifier: FileSystemTest
test_case.body: @Test
      public void testReadDirectory() throws URISyntaxException, IOException {
          FileSystem fs = new FileSystem(new URI("file:///"));
          Path root = Paths.get("src", "test", "resources", "my-rules");
          List<Path> content = fs.readDirectory(root.toUri()).collect(Collectors.toList());
          assertEquals(3, content.size());
          assertTrue(content.contains(root.resolve("rule1.html").toAbsolutePath()));
          assertTrue(content.contains(root.resolve("rule1.json").toAbsolutePath()));
          assertTrue(content.contains(root.resolve("rule2.json").toAbsolutePath()));
      }
test_case.class_method_signature: FileSystemTest.testReadDirectory()
test_case.full_signature: @Test public void testReadDirectory()
test_case.identifier: testReadDirectory
test_case.invocations: get collect readDirectory toUri toList assertEquals size assertTrue contains toAbsolutePath resolve assertTrue contains toAbsolutePath resolve assertTrue contains toAbsolutePath resolve
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testReadDirectory()
focal_class.declarator: LOGGER = Loggers.get(FileSystem.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = Loggers.get(FileSystem.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.declarator: defaultFileSystem = false
focal_class.modifier: private
focal_class.original_string: private boolean defaultFileSystem = false;
focal_class.type: boolean
focal_class.var_name: defaultFileSystem
focal_class.declarator: fs
focal_class.modifier: private
focal_class.original_string: private java.nio.file.FileSystem fs;
focal_class.type: java.nio.file.FileSystem
focal_class.var_name: fs
focal_class.file: sonar-ansible-api/src/main/java/com/github/sbaudoin/sonar/plugins/ansible/util/FileSystem.java
focal_class.identifier: FileSystem
focal_class.interfaces: implements Closeable
focal_class.class_method_signature: FileSystem.FileSystem(URI uri)
focal_class.full_signature: public  FileSystem(URI uri)
focal_class.identifier: FileSystem
focal_class.modifiers: public
focal_class.parameters: (URI uri)
focal_class.signature:  FileSystem(URI uri)
focal_class.class_method_signature: FileSystem.close()
focal_class.full_signature: @Override public void close()
focal_class.identifier: close
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void close()
focal_class.class_method_signature: FileSystem.readDirectory(URI uri)
focal_class.full_signature: public Stream<Path> readDirectory(URI uri)
focal_class.identifier: readDirectory
focal_class.modifiers: public
focal_class.parameters: (URI uri)
focal_class.return: Stream<Path>
focal_class.signature: Stream<Path> readDirectory(URI uri)
focal_method.body: public Stream<Path> readDirectory(URI uri) throws IOException {
          List<Path> paths = new ArrayList<>();
          try (DirectoryStream<Path> stream = Files.newDirectoryStream(fs.provider().getPath(uri))) {
              for (Path entry: stream) {
                  paths.add(entry);
              }
              return paths.stream();
          }
      }
focal_method.class_method_signature: FileSystem.readDirectory(URI uri)
focal_method.full_signature: public Stream<Path> readDirectory(URI uri)
focal_method.identifier: readDirectory
focal_method.invocations: newDirectoryStream getPath provider add stream
focal_method.modifiers: public
focal_method.parameters: (URI uri)
focal_method.return: Stream<Path>
focal_method.signature: Stream<Path> readDirectory(URI uri)