void (final String[] fileNames, final String ext) { String initialTest = fileNames[0]; for(int i = 0; i < fileNames.length; ++i) { if (fileNames[i].indexOf('.') == -1) fileNames[i] += "."+ext; } myFixture.testCompletion(fileNames, initialTest + "_after." + ext); }