From 557fcad4f6ddba33e3b5edf6920504f65afbaf71 Mon Sep 17 00:00:00 2001 From: Christian Oertel Date: Fri, 20 Sep 2024 17:33:56 +0200 Subject: [PATCH] JGiven-10: fix first test Signed-off-by: Christian Oertel --- src/main/resources/META-INF/plugin.xml | 2 +- src/test/java/com/tngtech/jgiven/BaseTestCase.kt | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/resources/META-INF/plugin.xml b/src/main/resources/META-INF/plugin.xml index dcb4ae4..924f539 100644 --- a/src/main/resources/META-INF/plugin.xml +++ b/src/main/resources/META-INF/plugin.xml @@ -9,7 +9,7 @@ TNG Technology Consulting GmbH - + com.intellij.modules.java diff --git a/src/test/java/com/tngtech/jgiven/BaseTestCase.kt b/src/test/java/com/tngtech/jgiven/BaseTestCase.kt index 3d36370..3991e14 100644 --- a/src/test/java/com/tngtech/jgiven/BaseTestCase.kt +++ b/src/test/java/com/tngtech/jgiven/BaseTestCase.kt @@ -12,7 +12,9 @@ abstract class BaseTestCase : LightJavaCodeInsightFixtureTestCase() { @Throws(Exception::class) public override fun setUp() { super.setUp() - libraryTestUtil = LibraryTestUtil(module).addJGiven() + libraryTestUtil = LibraryTestUtil() + libraryTestUtil.setModule(module) + libraryTestUtil = libraryTestUtil.addJGiven() } @Throws(Exception::class)