void () { myFixture.configureByText("Test.java", """ import org.junit.jupiter.api.io.TempDir; 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; import static org.assertj.core.api.Assertions.assertThat; class Test { @Target({ ElementType.FIELD, ElementType.PARAMETER }) @Retention(RetentionPolicy.RUNTIME) @TempDir @interface CustomTempDir { } @CustomTempDir private Path tempDir; @org.junit.jupiter.api.Test void test() { assertThat(tempDir); } } """); myFixture.testHighlighting(true, false, false); }