void () { String[][] situations = { {"On refresh of files in awesome.project", "On refresh of files in awesome.project", "On refresh of files in awesome.project"}, {"On refresh of A", "On refresh of B", "Merged On refresh of A with On refresh of B"}, {"Merged A with B", "Merged A with B", "Merged A with B"}, {"Merged A with B", "Merged B with C", "Merged A with B with B with C"}, {"Merged A with B with C", "Merged B with C", "Merged A with B with C"}, {"Merged On refresh of A with On refresh of B", "On refresh of B", "Merged On refresh of A with On refresh of B"} }; for (String[] situation : situations) { UnindexedFilesIndexer t1 = new UnindexedFilesIndexer(getProject(), situation[0]); UnindexedFilesIndexer t2 = new UnindexedFilesIndexer(getProject(), situation[1]); UnindexedFilesIndexer merged = t1.tryMergeWith(t2); assertEquals(situation[2], merged.getIndexingReason()); } }