Skip to content

Commit c02a046

Browse files
committed
Cleanup properly after test
1 parent 012cbf2 commit c02a046

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

Diff for: .github/workflows/main.yml

-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ jobs:
88
fail-fast: false
99
matrix:
1010
version:
11-
- { jdk: 17, idea: 2022.3 }
12-
- { jdk: 17, idea: 2023.1 }
13-
- { jdk: 17, idea: 2023.2 }
1411
- { jdk: 17, idea: 2023.3 }
1512
- { jdk: 17, idea: 2024.1 }
1613
- { jdk: 17, idea: 2024.2 }

Diff for: src/test/java/org/mapstruct/intellij/inspection/UnmappedTargetPropertiesInspectionSourceBeforeTargetTest.java

+9
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import java.util.List;
99

1010
import com.intellij.codeInsight.intention.IntentionAction;
11+
import com.intellij.ide.util.PropertiesComponent;
1112
import org.jetbrains.annotations.NotNull;
1213
import org.mapstruct.intellij.settings.ProjectSettings;
1314

@@ -33,6 +34,14 @@ protected void setUp() throws Exception {
3334
);
3435
}
3536

37+
@Override
38+
public void tearDown() throws Exception {
39+
PropertiesComponent.getInstance( myFixture.getProject() )
40+
.unsetValue( ProjectSettings.PREFER_SOURCE_BEFORE_TARGET_IN_MAPPING );
41+
42+
super.tearDown();
43+
}
44+
3645
public void testUnmappedTargetPropertiesSourceBeforeTarget() {
3746
ProjectSettings.setPreferSourceBeforeTargetInMapping( myFixture.getProject(), true );
3847
doTest();

0 commit comments

Comments
 (0)