Here you can find the source of getTempDirectory(Class> c)
Parameter | Description |
---|---|
c | The class being tested. |
public static File getTempDirectory(Class<?> c)
//package com.java2s; /*/*from w ww .j a va2s . c om*/ * This file is part of the DiffX library. * * For licensing information please see the file license.txt included in the release. * A copy of this licence can also be found at * http://www.opensource.org/licenses/artistic-license-2.0.php */ import java.io.File; public class Main { /** * Returns the temporary directory for the class being tested. * * <p>The temporary directory contains test data that is generated by the test from data can be deleted * (eg. generated index, etc...) * * @param c The class being tested. * @return the corresponding data directory. */ public static File getTempDirectory(Class<?> c) { File data = new File("tmp"); String dir = c.getName().replace('.', File.separatorChar); return new File(data, dir); } }