Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix settings persistence: we save IDs, thus we should parse IDs inste… #1116

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,9 @@ private class TestFrameworkConverter : Converter<TestFramework>() {
override fun toString(value: TestFramework): String = "$value"

override fun fromString(value: String): TestFramework = when (value) {
Junit4.displayName -> Junit4
Junit5.displayName -> Junit5
TestNg.displayName -> TestNg
Junit4.id -> Junit4
Junit5.id -> Junit5
TestNg.id -> TestNg
else -> error("Unknown TestFramework $value")
}
}
Expand All @@ -225,8 +225,8 @@ private class StaticsMockingConverter : Converter<StaticsMocking>() {
override fun toString(value: StaticsMocking): String = "$value"

override fun fromString(value: String): StaticsMocking = when (value) {
NoStaticMocking.displayName -> NoStaticMocking
MockitoStaticMocking.displayName -> MockitoStaticMocking
NoStaticMocking.id -> NoStaticMocking
MockitoStaticMocking.id -> MockitoStaticMocking
else -> error("Unknown StaticsMocking $value")
}
}
Expand Down