Skip to content

Commit 7543838

Browse files
author
Nathan Regner
committed
Prevent garbage collection if junit.jupiter.api.TestFactory annotations are present
1 parent 49bf096 commit 7543838

File tree

1 file changed

+2
-1
lines changed
  • jvm/selfie-runner-junit5/src/main/kotlin/com/diffplug/selfie/junit5

1 file changed

+2
-1
lines changed

jvm/selfie-runner-junit5/src/main/kotlin/com/diffplug/selfie/junit5/SelfieGC.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2023-2024 DiffPlug
2+
* Copyright (C) 2023-2025 DiffPlug
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -22,6 +22,7 @@ import com.diffplug.selfie.guts.WithinTestGC
2222
private val testAnnotations =
2323
listOf(
2424
"org.junit.jupiter.api.Test", // junit5,
25+
"org.junit.jupiter.api.TestFactory", // junit5,
2526
"org.junit.jupiter.params.ParameterizedTest",
2627
"org.junit.Test" // junit4
2728
)

0 commit comments

Comments
 (0)