package com.google.refine.tests.util; import java.io.File; import java.io.IOException; public class TestUtils { /** * Create a temporary directory. NOTE: This is a quick and dirty * implementation suitable for tests, not production code. * * @param name * @return * @throws IOException */ public static File createTempDirectory(String name) throws IOException { File dir = File.createTempFile(name, ""); dir.delete(); dir.mkdir(); return dir; } }