From 3588547d8c4c14be1ed88fd3790b051f5e7227e2 Mon Sep 17 00:00:00 2001 From: Lucas Smaira Date: Fri, 27 Jul 2018 14:07:51 +0100 Subject: [PATCH] Remove *ImplTest for Kotlin Gradle Models Equality should already be guaranteed by Kotlin data classes. --- libraries/tools/kotlin-allopen/build.gradle | 1 - .../gradle/model/impl/AllOpenImplTest.kt | 19 ------------------- .../tools/kotlin-gradle-plugin/build.gradle | 1 - .../model/impl/CompilerArgumentsImplTest.kt | 18 ------------------ .../impl/ExperimentalFeaturesImplTest.kt | 18 ------------------ .../kotlin/gradle/model/impl/KaptImplTest.kt | 18 ------------------ .../model/impl/KaptSourceSetImplTest.kt | 18 ------------------ .../impl/KotlinAndroidExtensionImplTest.kt | 18 ------------------ .../model/impl/KotlinProjectImplTest.kt | 18 ------------------ .../gradle/model/impl/SourceSetImplTest.kt | 18 ------------------ libraries/tools/kotlin-noarg/build.gradle | 1 - .../noarg/gradle/model/impl/NoArgImplTest.kt | 18 ------------------ .../kotlin-sam-with-receiver/build.gradle | 1 - .../model/impl/SamWithReceiverImplTest.kt | 18 ------------------ 14 files changed, 185 deletions(-) delete mode 100644 libraries/tools/kotlin-allopen/src/test/kotlin/org/jetbrains/kotlin/allopen/gradle/model/impl/AllOpenImplTest.kt delete mode 100644 libraries/tools/kotlin-gradle-plugin/src/test/kotlin/org/jetbrains/kotlin/gradle/model/impl/CompilerArgumentsImplTest.kt delete mode 100644 libraries/tools/kotlin-gradle-plugin/src/test/kotlin/org/jetbrains/kotlin/gradle/model/impl/ExperimentalFeaturesImplTest.kt delete mode 100644 libraries/tools/kotlin-gradle-plugin/src/test/kotlin/org/jetbrains/kotlin/gradle/model/impl/KaptImplTest.kt delete mode 100644 libraries/tools/kotlin-gradle-plugin/src/test/kotlin/org/jetbrains/kotlin/gradle/model/impl/KaptSourceSetImplTest.kt delete mode 100644 libraries/tools/kotlin-gradle-plugin/src/test/kotlin/org/jetbrains/kotlin/gradle/model/impl/KotlinAndroidExtensionImplTest.kt delete mode 100644 libraries/tools/kotlin-gradle-plugin/src/test/kotlin/org/jetbrains/kotlin/gradle/model/impl/KotlinProjectImplTest.kt delete mode 100644 libraries/tools/kotlin-gradle-plugin/src/test/kotlin/org/jetbrains/kotlin/gradle/model/impl/SourceSetImplTest.kt delete mode 100644 libraries/tools/kotlin-noarg/src/test/kotlin/org/jetbrains/kotlin/noarg/gradle/model/impl/NoArgImplTest.kt delete mode 100644 libraries/tools/kotlin-sam-with-receiver/src/test/kotlin/org/jetbrains/kotlin/noarg/gradle/model/impl/SamWithReceiverImplTest.kt diff --git a/libraries/tools/kotlin-allopen/build.gradle b/libraries/tools/kotlin-allopen/build.gradle index f4d3614c409..684bd677aae 100644 --- a/libraries/tools/kotlin-allopen/build.gradle +++ b/libraries/tools/kotlin-allopen/build.gradle @@ -20,7 +20,6 @@ dependencies { testCompile gradleApi() testCompile "junit:junit:4.12" - testCompile "nl.jqno.equalsverifier:equalsverifier:2.1.5" } evaluationDependsOn(":kotlin-allopen-compiler-plugin") diff --git a/libraries/tools/kotlin-allopen/src/test/kotlin/org/jetbrains/kotlin/allopen/gradle/model/impl/AllOpenImplTest.kt b/libraries/tools/kotlin-allopen/src/test/kotlin/org/jetbrains/kotlin/allopen/gradle/model/impl/AllOpenImplTest.kt deleted file mode 100644 index b9b9570b84b..00000000000 --- a/libraries/tools/kotlin-allopen/src/test/kotlin/org/jetbrains/kotlin/allopen/gradle/model/impl/AllOpenImplTest.kt +++ /dev/null @@ -1,19 +0,0 @@ -/* - * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license - * that can be found in the license/LICENSE.txt file. - */ - -package org.jetbrains.kotlin.allopen.gradle.model.impl - - -import nl.jqno.equalsverifier.EqualsVerifier -import nl.jqno.equalsverifier.Warning -import org.junit.Test - -class AllOpenImplTest { - @Test - @Throws(Exception::class) - fun equals() { - EqualsVerifier.forClass(AllOpenImpl::class.java).suppress(Warning.NULL_FIELDS).verify() - } -} \ No newline at end of file diff --git a/libraries/tools/kotlin-gradle-plugin/build.gradle b/libraries/tools/kotlin-gradle-plugin/build.gradle index fe900af5c8e..8400b20299d 100644 --- a/libraries/tools/kotlin-gradle-plugin/build.gradle +++ b/libraries/tools/kotlin-gradle-plugin/build.gradle @@ -78,7 +78,6 @@ dependencies { testCompile project(':kotlin-compiler-runner') testCompile project(':kotlin-test::kotlin-test-junit') testCompile "junit:junit:4.12" - testCompile "nl.jqno.equalsverifier:equalsverifier:2.1.5" testCompileOnly project(':kotlin-reflect-api') testCompileOnly project(':kotlin-annotation-processing') testCompileOnly project(':kotlin-annotation-processing-gradle') diff --git a/libraries/tools/kotlin-gradle-plugin/src/test/kotlin/org/jetbrains/kotlin/gradle/model/impl/CompilerArgumentsImplTest.kt b/libraries/tools/kotlin-gradle-plugin/src/test/kotlin/org/jetbrains/kotlin/gradle/model/impl/CompilerArgumentsImplTest.kt deleted file mode 100644 index 978f35b1257..00000000000 --- a/libraries/tools/kotlin-gradle-plugin/src/test/kotlin/org/jetbrains/kotlin/gradle/model/impl/CompilerArgumentsImplTest.kt +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license - * that can be found in the license/LICENSE.txt file. - */ - -package org.jetbrains.kotlin.gradle.model.impl - -import nl.jqno.equalsverifier.EqualsVerifier -import nl.jqno.equalsverifier.Warning -import org.junit.Test - -class CompilerArgumentsImplTest { - @Test - @Throws(Exception::class) - fun equals() { - EqualsVerifier.forClass(CompilerArgumentsImpl::class.java).suppress(Warning.NULL_FIELDS).verify() - } -} \ No newline at end of file diff --git a/libraries/tools/kotlin-gradle-plugin/src/test/kotlin/org/jetbrains/kotlin/gradle/model/impl/ExperimentalFeaturesImplTest.kt b/libraries/tools/kotlin-gradle-plugin/src/test/kotlin/org/jetbrains/kotlin/gradle/model/impl/ExperimentalFeaturesImplTest.kt deleted file mode 100644 index c079ca5b762..00000000000 --- a/libraries/tools/kotlin-gradle-plugin/src/test/kotlin/org/jetbrains/kotlin/gradle/model/impl/ExperimentalFeaturesImplTest.kt +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license - * that can be found in the license/LICENSE.txt file. - */ - -package org.jetbrains.kotlin.gradle.model.impl - -import nl.jqno.equalsverifier.EqualsVerifier -import nl.jqno.equalsverifier.Warning -import org.junit.Test - -class ExperimentalFeaturesImplTest { - @Test - @Throws(Exception::class) - fun equals() { - EqualsVerifier.forClass(ExperimentalFeaturesImpl::class.java).suppress(Warning.NULL_FIELDS).verify() - } -} \ No newline at end of file diff --git a/libraries/tools/kotlin-gradle-plugin/src/test/kotlin/org/jetbrains/kotlin/gradle/model/impl/KaptImplTest.kt b/libraries/tools/kotlin-gradle-plugin/src/test/kotlin/org/jetbrains/kotlin/gradle/model/impl/KaptImplTest.kt deleted file mode 100644 index f0598332d87..00000000000 --- a/libraries/tools/kotlin-gradle-plugin/src/test/kotlin/org/jetbrains/kotlin/gradle/model/impl/KaptImplTest.kt +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license - * that can be found in the license/LICENSE.txt file. - */ - -package org.jetbrains.kotlin.gradle.model.impl - -import nl.jqno.equalsverifier.EqualsVerifier -import nl.jqno.equalsverifier.Warning -import org.junit.Test - -class KaptImplTest { - @Test - @Throws(Exception::class) - fun equals() { - EqualsVerifier.forClass(KaptImpl::class.java).suppress(Warning.NULL_FIELDS).verify() - } -} \ No newline at end of file diff --git a/libraries/tools/kotlin-gradle-plugin/src/test/kotlin/org/jetbrains/kotlin/gradle/model/impl/KaptSourceSetImplTest.kt b/libraries/tools/kotlin-gradle-plugin/src/test/kotlin/org/jetbrains/kotlin/gradle/model/impl/KaptSourceSetImplTest.kt deleted file mode 100644 index 914438c80de..00000000000 --- a/libraries/tools/kotlin-gradle-plugin/src/test/kotlin/org/jetbrains/kotlin/gradle/model/impl/KaptSourceSetImplTest.kt +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license - * that can be found in the license/LICENSE.txt file. - */ - -package org.jetbrains.kotlin.gradle.model.impl - -import nl.jqno.equalsverifier.EqualsVerifier -import nl.jqno.equalsverifier.Warning -import org.junit.Test - -class KaptSourceSetImplTest { - @Test - @Throws(Exception::class) - fun equals() { - EqualsVerifier.forClass(KaptSourceSetImpl::class.java).suppress(Warning.NULL_FIELDS).verify() - } -} \ No newline at end of file diff --git a/libraries/tools/kotlin-gradle-plugin/src/test/kotlin/org/jetbrains/kotlin/gradle/model/impl/KotlinAndroidExtensionImplTest.kt b/libraries/tools/kotlin-gradle-plugin/src/test/kotlin/org/jetbrains/kotlin/gradle/model/impl/KotlinAndroidExtensionImplTest.kt deleted file mode 100644 index 79dccd102dd..00000000000 --- a/libraries/tools/kotlin-gradle-plugin/src/test/kotlin/org/jetbrains/kotlin/gradle/model/impl/KotlinAndroidExtensionImplTest.kt +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license - * that can be found in the license/LICENSE.txt file. - */ - -package org.jetbrains.kotlin.gradle.model.impl - -import nl.jqno.equalsverifier.EqualsVerifier -import nl.jqno.equalsverifier.Warning -import org.junit.Test - -class KotlinAndroidExtensionImplTest { - @Test - @Throws(Exception::class) - fun equals() { - EqualsVerifier.forClass(KotlinAndroidExtensionImpl::class.java).suppress(Warning.NULL_FIELDS).verify() - } -} \ No newline at end of file diff --git a/libraries/tools/kotlin-gradle-plugin/src/test/kotlin/org/jetbrains/kotlin/gradle/model/impl/KotlinProjectImplTest.kt b/libraries/tools/kotlin-gradle-plugin/src/test/kotlin/org/jetbrains/kotlin/gradle/model/impl/KotlinProjectImplTest.kt deleted file mode 100644 index 4d77928b3ae..00000000000 --- a/libraries/tools/kotlin-gradle-plugin/src/test/kotlin/org/jetbrains/kotlin/gradle/model/impl/KotlinProjectImplTest.kt +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license - * that can be found in the license/LICENSE.txt file. - */ - -package org.jetbrains.kotlin.gradle.model.impl - -import nl.jqno.equalsverifier.EqualsVerifier -import nl.jqno.equalsverifier.Warning -import org.junit.Test - -class KotlinProjectImplTest { - @Test - @Throws(Exception::class) - fun equals() { - EqualsVerifier.forClass(KotlinProjectImpl::class.java).suppress(Warning.NULL_FIELDS).verify() - } -} \ No newline at end of file diff --git a/libraries/tools/kotlin-gradle-plugin/src/test/kotlin/org/jetbrains/kotlin/gradle/model/impl/SourceSetImplTest.kt b/libraries/tools/kotlin-gradle-plugin/src/test/kotlin/org/jetbrains/kotlin/gradle/model/impl/SourceSetImplTest.kt deleted file mode 100644 index 28089f1c6a4..00000000000 --- a/libraries/tools/kotlin-gradle-plugin/src/test/kotlin/org/jetbrains/kotlin/gradle/model/impl/SourceSetImplTest.kt +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license - * that can be found in the license/LICENSE.txt file. - */ - -package org.jetbrains.kotlin.gradle.model.impl - -import nl.jqno.equalsverifier.EqualsVerifier -import nl.jqno.equalsverifier.Warning -import org.junit.Test - -class SourceSetImplTest { - @Test - @Throws(Exception::class) - fun equals() { - EqualsVerifier.forClass(SourceSetImpl::class.java).suppress(Warning.NULL_FIELDS).verify() - } -} \ No newline at end of file diff --git a/libraries/tools/kotlin-noarg/build.gradle b/libraries/tools/kotlin-noarg/build.gradle index ae0039393cc..19335f1391f 100644 --- a/libraries/tools/kotlin-noarg/build.gradle +++ b/libraries/tools/kotlin-noarg/build.gradle @@ -26,7 +26,6 @@ dependencies { testCompile gradleApi() testCompile "junit:junit:4.12" - testCompile "nl.jqno.equalsverifier:equalsverifier:2.1.5" } evaluationDependsOn(":kotlin-noarg-compiler-plugin") diff --git a/libraries/tools/kotlin-noarg/src/test/kotlin/org/jetbrains/kotlin/noarg/gradle/model/impl/NoArgImplTest.kt b/libraries/tools/kotlin-noarg/src/test/kotlin/org/jetbrains/kotlin/noarg/gradle/model/impl/NoArgImplTest.kt deleted file mode 100644 index 3b1b3665aae..00000000000 --- a/libraries/tools/kotlin-noarg/src/test/kotlin/org/jetbrains/kotlin/noarg/gradle/model/impl/NoArgImplTest.kt +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license - * that can be found in the license/LICENSE.txt file. - */ - -package org.jetbrains.kotlin.noarg.gradle.model.impl - -import nl.jqno.equalsverifier.EqualsVerifier -import nl.jqno.equalsverifier.Warning -import org.junit.Test - -class NoArgImplTest { - @Test - @Throws(Exception::class) - fun equals() { - EqualsVerifier.forClass(NoArgImpl::class.java).suppress(Warning.NULL_FIELDS).verify() - } -} \ No newline at end of file diff --git a/libraries/tools/kotlin-sam-with-receiver/build.gradle b/libraries/tools/kotlin-sam-with-receiver/build.gradle index 3e1ffa61f76..0480fcf2c7b 100644 --- a/libraries/tools/kotlin-sam-with-receiver/build.gradle +++ b/libraries/tools/kotlin-sam-with-receiver/build.gradle @@ -26,7 +26,6 @@ dependencies { testCompile gradleApi() testCompile "junit:junit:4.12" - testCompile "nl.jqno.equalsverifier:equalsverifier:2.1.5" } evaluationDependsOn(":kotlin-sam-with-receiver-compiler-plugin") diff --git a/libraries/tools/kotlin-sam-with-receiver/src/test/kotlin/org/jetbrains/kotlin/noarg/gradle/model/impl/SamWithReceiverImplTest.kt b/libraries/tools/kotlin-sam-with-receiver/src/test/kotlin/org/jetbrains/kotlin/noarg/gradle/model/impl/SamWithReceiverImplTest.kt deleted file mode 100644 index 0a4f0cc355c..00000000000 --- a/libraries/tools/kotlin-sam-with-receiver/src/test/kotlin/org/jetbrains/kotlin/noarg/gradle/model/impl/SamWithReceiverImplTest.kt +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license - * that can be found in the license/LICENSE.txt file. - */ - -package org.jetbrains.kotlin.noarg.gradle.model.impl - -import nl.jqno.equalsverifier.EqualsVerifier -import nl.jqno.equalsverifier.Warning -import org.junit.Test - -class SamWithReceiverImplTest { - @Test - @Throws(Exception::class) - fun equals() { - EqualsVerifier.forClass(SamWithReceiverImpl::class.java).suppress(Warning.NULL_FIELDS).verify() - } -} \ No newline at end of file