public List < String > buildMessageHeaderData ( final TestContext context ) { final List < String > headerDataList = new ArrayList <> ( ) ; for ( final String headerResourcePath : headerResources ) { try { headerDataList . add ( context . replaceDynamicContentInString ( FileUtils . readToString ( FileUtils . getFileResource ( headerResourcePath , context ) , FileUtils . getCharset ( headerResourcePath ) ) ) ) ; } catch ( final IOException e ) { throw new CitrusRuntimeException ( "Failed to read message header data resource" , e ) ; } } for ( final String data : headerData ) { headerDataList . add ( context . replaceDynamicContentInString ( data . trim ( ) ) ) ; } return headerDataList ; }
Build message header data .