[kotlin-test] Enable explicit API mode KT-61969

This commit is contained in:
Ilya Gorbunov
2023-11-24 05:07:06 +01:00
committed by Space Team
parent 6c46d11d0a
commit 7a4335b087
4 changed files with 13 additions and 6 deletions
@@ -11,7 +11,7 @@ import kotlin.test.*
/**
* Provides [TestNGAsserter] if `org.testng.Assert` is found in the classpath.
*/
class TestNGContributor : AsserterContributor {
public class TestNGContributor : AsserterContributor {
override fun contribute(): Asserter? {
return if (hasTestNGInClassPath) TestNGAsserter else null
}
@@ -27,7 +27,7 @@ class TestNGContributor : AsserterContributor {
/**
* Implements `kotlin.test` assertions by delegating them to `org.testng.Assert` class.
*/
object TestNGAsserter : Asserter {
public object TestNGAsserter : Asserter {
override fun assertEquals(message: String?, expected: Any?, actual: Any?) {
Assert.assertEquals(actual, expected, message)
}