From 66e2f95dbae0927ad3e75e1699c5796e54c627d9 Mon Sep 17 00:00:00 2001 From: Nikolay Krasko Date: Fri, 21 Feb 2020 17:27:49 +0300 Subject: [PATCH] Update method after UsefulTestCase update to make in work in 201 --- .../org/jetbrains/kotlin/codegen/ControlStructuresTest.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/compiler/tests/org/jetbrains/kotlin/codegen/ControlStructuresTest.java b/compiler/tests/org/jetbrains/kotlin/codegen/ControlStructuresTest.java index c063a3907cc..82097a9686d 100644 --- a/compiler/tests/org/jetbrains/kotlin/codegen/ControlStructuresTest.java +++ b/compiler/tests/org/jetbrains/kotlin/codegen/ControlStructuresTest.java @@ -20,8 +20,6 @@ import org.jetbrains.kotlin.test.ConfigurationKind; import java.lang.reflect.Method; -import static org.jetbrains.kotlin.codegen.CodegenTestUtil.assertThrows; - public class ControlStructuresTest extends CodegenTestCase { @Override protected void setUp() throws Exception { @@ -47,7 +45,7 @@ public class ControlStructuresTest extends CodegenTestCase { public void testThrowCheckedException() throws Exception { loadText("fun foo() { throw Exception(); }"); Method main = generateFunction(); - assertThrows(main, Exception.class, null); + CodegenTestUtil.assertThrows(main, Exception.class, null); } public void testCompareToZero() throws Exception {