From 736818dfa71ca66f3455e9972d3ff79abbc2e503 Mon Sep 17 00:00:00 2001 From: Ilya Gorbunov Date: Sat, 1 Dec 2018 07:54:47 +0300 Subject: [PATCH] Use Before/AfterMethod from TestNG as kotlin.test.Before/AfterTest According to their documentation they should be invoked before and after each test method runs. #KT-27629 Fixed --- libraries/kotlin.test/testng/src/main/kotlin/Annotations.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/kotlin.test/testng/src/main/kotlin/Annotations.kt b/libraries/kotlin.test/testng/src/main/kotlin/Annotations.kt index e8fdd3f55d3..0ec7b07d34a 100644 --- a/libraries/kotlin.test/testng/src/main/kotlin/Annotations.kt +++ b/libraries/kotlin.test/testng/src/main/kotlin/Annotations.kt @@ -11,5 +11,5 @@ package kotlin.test public actual typealias Test = org.testng.annotations.Test public actual typealias Ignore = org.testng.annotations.Ignore -public actual typealias BeforeTest = org.testng.annotations.BeforeClass -public actual typealias AfterTest = org.testng.annotations.AfterClass +public actual typealias BeforeTest = org.testng.annotations.BeforeMethod +public actual typealias AfterTest = org.testng.annotations.AfterMethod