Skip to content

Commit 8659bab

Browse files
committed
test: Disable create(Throwable) test
In JDK 11 this throws a StackOverflowError which is not an exception so we don't catch it.
1 parent 0a36c9e commit 8659bab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/test/java/com/github/nylle/javafixture/FixtureTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import com.github.nylle.javafixture.testobjects.example.Contract;
2020
import com.github.nylle.javafixture.testobjects.example.ContractCategory;
2121
import com.github.nylle.javafixture.testobjects.example.ContractPosition;
22+
import org.junit.jupiter.api.Disabled;
2223
import org.junit.jupiter.api.DisplayName;
2324
import org.junit.jupiter.api.Nested;
2425
import org.junit.jupiter.api.Test;
@@ -551,6 +552,7 @@ void createThroughRandomConstructor() {
551552
}
552553

553554
@Test
555+
@Disabled("This test will start working when it's run with JDK 17")
554556
void createExceptionWithLimitedTree() {
555557

556558
var sut = new Fixture(configuration);

0 commit comments

Comments
 (0)