Skip to content

Commit

Permalink
Cleanup properly after test
Browse files Browse the repository at this point in the history
  • Loading branch information
filiphr committed Oct 20, 2024
1 parent 012cbf2 commit c02a046
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ jobs:
fail-fast: false
matrix:
version:
- { jdk: 17, idea: 2022.3 }
- { jdk: 17, idea: 2023.1 }
- { jdk: 17, idea: 2023.2 }
- { jdk: 17, idea: 2023.3 }
- { jdk: 17, idea: 2024.1 }
- { jdk: 17, idea: 2024.2 }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import java.util.List;

import com.intellij.codeInsight.intention.IntentionAction;
import com.intellij.ide.util.PropertiesComponent;
import org.jetbrains.annotations.NotNull;
import org.mapstruct.intellij.settings.ProjectSettings;

Expand All @@ -33,6 +34,14 @@ protected void setUp() throws Exception {
);
}

@Override
public void tearDown() throws Exception {
PropertiesComponent.getInstance( myFixture.getProject() )
.unsetValue( ProjectSettings.PREFER_SOURCE_BEFORE_TARGET_IN_MAPPING );

super.tearDown();
}

public void testUnmappedTargetPropertiesSourceBeforeTarget() {
ProjectSettings.setPreferSourceBeforeTargetInMapping( myFixture.getProject(), true );
doTest();
Expand Down

0 comments on commit c02a046

Please sign in to comment.