mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 06:50:54 +07:00
[jvm] Remove old JUnit 5 test data
This test data isn't used by any test. GitOrigin-RevId: 09f944bfdf3978b89e41d73c4762f8e31e59970e
This commit is contained in:
committed by
intellij-monorepo-bot
parent
90024bc541
commit
99e28672d9
@@ -1,11 +0,0 @@
|
||||
package test
|
||||
|
||||
import org.junit.jupiter.params.ParameterizedTest
|
||||
import org.junit.jupiter.params.provider.MethodSource
|
||||
|
||||
object PrivateClassRule {
|
||||
@ParameterizedTest
|
||||
@MethodSource("<warning descr="Cannot resolve target method source: 'unknown'">unknown</warning>")
|
||||
fun unknownMethodSource() {
|
||||
}
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
package test;
|
||||
|
||||
|
||||
import org.junit.jupiter.params.ParameterizedTest
|
||||
import org.junit.jupiter.params.provider.EnumSource
|
||||
|
||||
public class Clazz {
|
||||
|
||||
private enum class Dupl {A, B, C}
|
||||
private enum class Empty {}
|
||||
|
||||
@ParameterizedTest
|
||||
@EnumSource(value = Dupl::class, names = ["A", "<warning descr="Duplicate 'enum' constant name">A</warning>"])
|
||||
fun duplicateEnum() {
|
||||
}
|
||||
|
||||
@ParameterizedTest
|
||||
@EnumSource(value = Empty::class, names = ["<warning descr="Can't resolve 'enum' constant reference.">S</warning>"])
|
||||
fun emptyEnum() {
|
||||
}
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
package test
|
||||
|
||||
import org.junit.jupiter.params.ParameterizedTest
|
||||
|
||||
object PrivateRule {
|
||||
@ParameterizedTest
|
||||
@<warning descr="Exactly one type of input must be provided">ValueSource</warning>(ints = [1], strings = ["str"])
|
||||
fun testWithMultipleValues() {
|
||||
}
|
||||
|
||||
@ParameterizedTest
|
||||
@<warning descr="No value source is defined">ValueSource</warning>()
|
||||
fun testWithNoValues() {
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.MethodSource;
|
||||
|
||||
class KtMethodSourceUsage {
|
||||
@ParameterizedTest
|
||||
@MethodSource("SampleTest#squares")
|
||||
void testSquares(int input, int expected) {}
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
import org.junit.jupiter.params.ParameterizedTest
|
||||
import org.junit.jupiter.params.provider.EmptySource
|
||||
|
||||
object MalformedParameterizedCollectionKt {
|
||||
@ParameterizedTest
|
||||
@EmptySource
|
||||
fun testFooSet(input: Set<String?>?) {}
|
||||
|
||||
@ParameterizedTest
|
||||
@EmptySource
|
||||
fun testFooList(input: List<String?>?) {}
|
||||
|
||||
@ParameterizedTest
|
||||
@EmptySource
|
||||
fun testFooMap(input: Map<String?, String?>?) {}
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
package test
|
||||
|
||||
import org.junit.jupiter.params.ParameterizedTest
|
||||
import org.junit.jupiter.params.provider.MethodSource
|
||||
|
||||
class NoParamsClazz {
|
||||
@ParameterizedTest
|
||||
@MethodSource("<warning descr="Method source 'b' should have no parameters">b</warning>")
|
||||
fun testWithParams() {
|
||||
}
|
||||
|
||||
companion object {
|
||||
@kotlin.jvm.JvmStatic
|
||||
fun b(<warning descr="[UNUSED_PARAMETER] Parameter 'i' is never used">i</warning>: Int): Array<String> {
|
||||
return arrayOf("a", "b")
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
package test
|
||||
|
||||
object PrivateRule {
|
||||
@<warning descr="No sources are provided, the suite would be empty">ParameterizedTest</warning>
|
||||
fun testWithParamsNoSource() {}
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
package test
|
||||
|
||||
import org.junit.jupiter.api.TestInstance
|
||||
import org.junit.jupiter.params.ParameterizedTest
|
||||
import org.junit.jupiter.params.provider.MethodSource
|
||||
|
||||
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
||||
object PrivateRule {
|
||||
@ParameterizedTest
|
||||
@MethodSource("<warning descr="Method source 'squares' must have one of the following return types: 'Stream<?>', 'Iterator<?>', 'Iterable<?>' or 'Object[]'">squares</warning>")
|
||||
fun foo() {}
|
||||
|
||||
|
||||
fun squares(): String {
|
||||
return "aa"
|
||||
}
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
package test
|
||||
|
||||
import org.junit.jupiter.api.TestInstance
|
||||
import org.junit.jupiter.params.ParameterizedTest
|
||||
import org.junit.jupiter.params.provider.MethodSource
|
||||
import java.util.stream.Stream
|
||||
|
||||
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
||||
class PrivateClassRule {
|
||||
@ParameterizedTest
|
||||
@MethodSource("squares")
|
||||
fun foo() {}
|
||||
|
||||
companion object {
|
||||
@JvmStatic
|
||||
fun squares(): Stream<Int?>? {
|
||||
return null
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
package test
|
||||
|
||||
import org.junit.jupiter.params.ParameterizedTest
|
||||
import org.junit.jupiter.params.provider.MethodSource
|
||||
import java.util.stream.Stream
|
||||
|
||||
class PrivateClassRule {
|
||||
@ParameterizedTest
|
||||
@MethodSource("squares")
|
||||
fun foo() {}
|
||||
|
||||
fun squares(): Stream<Int?>? {
|
||||
return null
|
||||
}
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
package test
|
||||
|
||||
import org.junit.jupiter.api.TestInstance
|
||||
import org.junit.jupiter.params.ParameterizedTest
|
||||
import org.junit.jupiter.params.provider.MethodSource
|
||||
import java.util.stream.Stream
|
||||
|
||||
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
||||
object PrivateClassRule {
|
||||
@ParameterizedTest
|
||||
@MethodSource("squares")
|
||||
fun foo() {}
|
||||
|
||||
object {
|
||||
@JvmStatic
|
||||
fun squares(): Stream<Int?>? {
|
||||
return null
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
package test
|
||||
|
||||
import org.junit.jupiter.params.ParameterizedTest
|
||||
import org.junit.jupiter.params.provider.MethodSource
|
||||
import java.util.stream.Stream
|
||||
|
||||
object PrivateClassRule {
|
||||
@ParameterizedTest
|
||||
@MethodSource("squares")
|
||||
fun foo() {}
|
||||
|
||||
companion object {
|
||||
fun squares(): Stream<Int?>? {
|
||||
return null
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
package test
|
||||
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.params.provider.MethodSource
|
||||
import org.junit.jupiter.params.provider.ValueSource
|
||||
|
||||
object PrivateClassRule {
|
||||
@MethodSource("parmeters")
|
||||
@Test
|
||||
fun testWithTestAnnotation() {}
|
||||
|
||||
|
||||
|
||||
@ValueSource()
|
||||
@Test
|
||||
fun testWithTestAnnotationNoParameterized() {}
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
package test
|
||||
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.params.ParameterizedTest
|
||||
import org.junit.jupiter.params.provider.MethodSource
|
||||
import org.junit.jupiter.params.provider.ValueSource
|
||||
|
||||
object PrivateClassRule {
|
||||
@ParameterizedTest
|
||||
@MethodSource("parmeters")
|
||||
@Test
|
||||
fun testWithTestAnnotation() {}
|
||||
|
||||
|
||||
|
||||
@ValueSource()
|
||||
@Test
|
||||
fun testWithTestAnnotationNoParameterized() {}
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
package test
|
||||
|
||||
import org.junit.jupiter.params.ParameterizedTest
|
||||
import org.junit.jupiter.params.provider.MethodSource
|
||||
import org.junit.jupiter.params.provider.ValueSource
|
||||
|
||||
class ParamT {
|
||||
@ParameterizedTest
|
||||
@MethodSource("<warning descr="Cannot resolve target method source: 'parmeters'">parmeters</warning>")
|
||||
@<warning descr="Suspicious combination '@Test' and '@ParameterizedTest'">Test</warning>
|
||||
fun testWithTestAnnotation(a : Int) {}
|
||||
|
||||
|
||||
|
||||
@ValueSource()
|
||||
@<warning descr="Suspicious combination '@Test' and parameterized source">Test</warning>
|
||||
fun testWithTestAnnotationNoParameterized() {}
|
||||
|
||||
fun parameters(): Array<String> {
|
||||
return arrayOf("a", "b")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user