mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 15:50:53 +07:00
Will allow for disabling them individually. #IDEA-346510 Fixed GitOrigin-RevId: 7b879111b92f38a7a55166d67d657520c6d9314d
21 lines
913 B
Kotlin
21 lines
913 B
Kotlin
package com.intellij.codeInspection.deadCode
|
|
|
|
import com.intellij.jvm.analysis.internal.testFramework.deadCode.AssertJImplicitUsageProviderTestBase
|
|
import com.intellij.jvm.analysis.testFramework.JvmLanguage
|
|
|
|
class JavaAssertJImplicitUsageProviderTest : AssertJImplicitUsageProviderTestBase() {
|
|
fun `test inject soft assertion implicit usage provider`() {
|
|
myFixture.testHighlighting(JvmLanguage.JAVA, """
|
|
@org.junit.jupiter.api.extension.ExtendWith(org.assertj.core.api.junit.jupiter.SoftAssertionsExtension.class)
|
|
public class TestClass {
|
|
@org.assertj.core.api.junit.jupiter.InjectSoftAssertions
|
|
private org.assertj.core.api.SoftAssertions softAssertions;
|
|
|
|
@org.junit.jupiter.api.Test
|
|
public void doSomething() {
|
|
softAssertions.assertThat("string").isEqualTo("string");
|
|
}
|
|
}
|
|
""".trimIndent(), fileName = "TestClass")
|
|
}
|
|
} |