src/test/java/com/xceptance/neodymium/tests/NeodymiumTest.java
/**
     * delete a temporary test file
     * 
     * @param tempFile
     *            the tempFile that should be deleted after test execution
     */
delete a temporary test file

@param tempFile
the tempFile that should be deleted after test execution
delete a temporary test file @param tempFile the tempFile that should be deleted after test execution
public static void deleteTempFile(final File tempFile)
    {
        if (tempFile.exists())
        {
            try
            {
                Files.delete(tempFile.toPath());
            }
            catch (Exception e)
            {
                System.out.println(MessageFormat.format("Couldn''t delete temporary file: ''{0}'' caused by {1}",
                                                        tempFile.getAbsolutePath(), e));
            }
        }
    }
public static void deleteTempFile ( final File tempFile ) { if ( tempFile . exists ( ) ) { try { Files . delete ( tempFile . toPath ( ) ) ; } catch ( Exception e ) { System . out . println ( MessageFormat . format ( "Couldn''t delete temporary file: ''{0}'' caused by {1}" , tempFile . getAbsolutePath ( ) , e ) ) ; } } }
delete a temporary test file
delete a temporary test file