src/test/java/com/xceptance/neodymium/tests/NeodymiumTest.java
/**
     * Helper method to write a {@link Map} to an file
     * 
     * @param map
     * @param file
     */
Helper method to write a  Map to an file

@param map
@param file
Helper method to write a Map to an file @param map @param file
public static void writeMapToPropertiesFile(final Map<String, String> map, final File file)
    {
        String propertiesString = map.entrySet().stream()
                                     .map(entry -> entry.getKey() + "=" + entry.getValue())
                                     .collect(Collectors.joining(System.lineSeparator()));
        try
        {
            FileUtils.writeStringToFile(file, propertiesString, StandardCharsets.UTF_8);
        }
        catch (IOException e)
        {
            throw new RuntimeException(e);
        }
    }
public static void writeMapToPropertiesFile ( final Map < String , String > map , final File file ) { String propertiesString = map . entrySet ( ) . stream ( ) . map ( entry -> entry . getKey ( ) + "=" + entry . getValue ( ) ) . collect ( Collectors . joining ( System . lineSeparator ( ) ) ) ; try { FileUtils . writeStringToFile ( file , propertiesString , StandardCharsets . UTF_8 ) ; } catch ( IOException e ) { throw new RuntimeException ( e ) ; } }
Helper method to write a {@link Map} to an file
Helper method to write a { @link Map } to an file