From 158037dd68ade187b41d0d0e944409823a5bef88 Mon Sep 17 00:00:00 2001 From: Alexey Sedunov Date: Wed, 8 Jun 2016 12:02:28 +0300 Subject: [PATCH] Create Test Intention: Fix RuntimeException on attempt to convert generated test class to Kotlin #KT-12285 Fixed #EA-82281 Fixed --- ChangeLog.md | 1 + .../kotlin/idea/testIntegration/KotlinCreateTestIntention.kt | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/ChangeLog.md b/ChangeLog.md index 4a3ae27ec33..d769b66faac 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -168,6 +168,7 @@ - [`KT-11933`](https://youtrack.jetbrains.com/issue/KT-11933) Entities used only by alias are marked as unused - [`KT-12193`](https://youtrack.jetbrains.com/issue/KT-12193) Convert to block body isn't equivalent for when expressions returning Unit - [`KT-10779`](https://youtrack.jetbrains.com/issue/KT-10779) Simplify 'for' using destructing declaration: intention / inspection quick fix is available only when all variables are used +- [`KT-12285`](https://youtrack.jetbrains.com/issue/KT-12285) Fix exception on test class generation - [`KT-12502`](https://youtrack.jetbrains.com/issue/KT-12502) Convert to expression body should be forbidden for non-exhaustive when returning Unit - [`KT-12260`](https://youtrack.jetbrains.com/issue/KT-12260) ISE while replacing an operator with safe call diff --git a/idea/src/org/jetbrains/kotlin/idea/testIntegration/KotlinCreateTestIntention.kt b/idea/src/org/jetbrains/kotlin/idea/testIntegration/KotlinCreateTestIntention.kt index 366c66c4735..3499e14db1e 100644 --- a/idea/src/org/jetbrains/kotlin/idea/testIntegration/KotlinCreateTestIntention.kt +++ b/idea/src/org/jetbrains/kotlin/idea/testIntegration/KotlinCreateTestIntention.kt @@ -180,6 +180,10 @@ class KotlinCreateTestIntention : SelfTargetingRangeIntention