protected void configureByFile(@TestDataFile @NonNls @NotNull String filePath){
  try {
    final File ioFile=new File(getTestDataPath() + filePath);
    String fileText=FileUtilRt.loadFile(ioFile,CharsetToolkit.UTF8,true);
    configureFromFileText(ioFile.getName(),fileText);
  }
 catch (  IOException e) {
    throw new RuntimeException(e);
  }
}

protected void configureByFile ( @ TestDataFile @ NonNls @ NotNull String filePath ) { try { final File ioFile = new File ( getTestDataPath ( ) + filePath ) ; String fileText = FileUtilRt . loadFile ( ioFile , CharsetToolkit . UTF8 , true ) ; configureFromFileText ( ioFile . getName ( ) , fileText ) ; } catch ( IOException e ) { throw new RuntimeException ( e ) ; } }
configure test from data file . data file is usual java , xml or whatever file that needs to be tested except it has & lt ; caret & gt ; marker where caret should be placed when file is loaded in editor and & lt ; selection & gt ; & lt ; / selection & gt ; denoting selection bounds .
