![JAR search and dependency download from the Maven repository](/logo.png)
org.junitpioneer.jupiter.TempDir Maven / Gradle / Ivy
/*
* Copyright 2015-2020 the original author or authors.
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License v2.0 which
* accompanies this distribution and is available at
*
* http://www.eclipse.org/legal/epl-v20.html
*/
package org.junitpioneer.jupiter;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.nio.file.Path;
/**
* {@code TempDir} can be used to annotate a test or lifecycle method or
* test class constructor parameter of type {@link Path} that should be
* resolved into a temporary directory.
*
* Since JUnit Jupiter 5.4, there's a
*
* built-in {@code @TempDir} extension. If you don't need support for
* arbitrary file systems, you should consider using that instead of this
* extension.
*
* For more details and examples, see
* the documentation on TempDirectory
.
*
*
* @see TempDirectoryExtension
*/
@Target(ElementType.PARAMETER)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface TempDir {
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy