@@ -0,0 +1,806 @@
+//Imports%0A//Make sure you have Apache Commons IO in your buildpath%0Aimport java.io.File;%0Aimport java.io.IOException;%0Aimport org.apache.commons.io.FileUtils;%0A%0Apublic class TestCleanup %7B%0A%0A//Kills the process by the name you specify to it%09%0Apublic static void killProcess(String ProcessName) throws IOException %7B%0A%09%09Runtime.getRuntime().exec(%22taskkill /f /im %22 + ProcessName + %22.exe%22);%0A%7D%0A%0A//Clear the temp folder%0A//Gets the temp folder property from the System property itself%0Apublic static void clearTempFolder() throws IOException %7B%0A%09%0A%09try %7B%0A%09%09%09File file = new File(System.getProperty(%22java.io.tmpdir%22));%0A%09%09%09FileUtils.cleanDirectory(file);%0A%09%7D%0A%0A%09catch (IOException e) %7B%0A%09%09%09// Do nothing since we do not worry about the files that cannot be deleted%0A%09%09%09// Include exception handler logic if you want to%0A%09%09%7D%0A%09%7D%0A%0A%7D%0A

Create TestCleanup.java