@Test public void checkJavaFileInsideDirTest() throws IOException { String dir = baseDir + separator + "scanner2"; File path = createDirectory(dir); createFile(path, "testScanner.java"); List<String> dirContents = getJavaFiles(path.toString()); List<String> expectedContents = new LinkedList<>(); expectedContents.add(path.getCanonicalPath() + separator + "testScanner.java"); assertThat(true, is(dirContents.equals(expectedContents))); deleteDirectory(path); }
public static List<String> getJavaFiles(String root) throws IOException { return getFiles(root, JAVA_FILE_EXTENTION); }
YangFileScanner { public static List<String> getJavaFiles(String root) throws IOException { return getFiles(root, JAVA_FILE_EXTENTION); } }
YangFileScanner { public static List<String> getJavaFiles(String root) throws IOException { return getFiles(root, JAVA_FILE_EXTENTION); } private  YangFileScanner(); }
YangFileScanner { public static List<String> getJavaFiles(String root) throws IOException { return getFiles(root, JAVA_FILE_EXTENTION); } private  YangFileScanner(); static List<String> getJavaFiles(String root); static List<String> getYangFiles(String root); static List<String> getFiles(String root, String extension); }
YangFileScanner { public static List<String> getJavaFiles(String root) throws IOException { return getFiles(root, JAVA_FILE_EXTENTION); } private  YangFileScanner(); static List<String> getJavaFiles(String root); static List<String> getYangFiles(String root); static List<String> getFiles(String root, String extension);  }