void () { ChangedFilesStructure fs = new ChangedFilesStructure(myWorkingDirectory); PsiFile m1 = fs.createFile("Test1.java", COMMITTED, MODIFIED); PsiFile u1 = fs.createFile("Test2.java", COMMITTED, COMMITTED); fs.createDirectoryAndMakeItCurrent(); PsiFile m2 = fs.createFile("Test3.java", COMMITTED, MODIFIED); PsiFile u2 = fs.createFile("Test4.java", COMMITTED, COMMITTED); new ReformatCodeProcessor(getProject(), new PsiFile[] {m1, m2, u1, u2}, null, true).run(); assertFormattedLines(CHANGED_LINES, m1, m2); assertFormattedLines(NO_CHANGED_LINES, u1, u2); }