Removed validation that is now handled automatically by Gradle
Gradle automatically ensures that parameters marked with as validated.
@@ -5,7 +5,6 @@ import org.gradle.testfixtures.ProjectBuilder
import org.junit.Rule
import org.junit.rules.TemporaryFolder
import spock.lang.Specification
-import spock.lang.Unroll
class UpdateReleaseNotesTaskTest extends Specification {
@@ -23,43 +22,6 @@ class UpdateReleaseNotesTaskTest extends Specification {
underTest.gitHubUrl = "https://github.com"
}
- @Unroll
- def "should fail if gitHubUrl is not set"() {
- given:
- underTest.gitHubUrl = gitHubUrl
-
- when:
- underTest.updateReleaseNotes()
-
- then:
- def ex = thrown(GradleException)
- ex.message == "':updateReleaseNotes.gitHubUrl' must be configured."
-
- where:
- gitHubUrl << [" ", "", null]
- }
-
- def "should fail if gitHubRepository null" (){
- when:
- underTest.updateReleaseNotes()
-
- then:
- def ex = thrown(GradleException)
- ex.message == "':updateReleaseNotes.gitHubRepository' must be configured."
- }
-
- def "should fail if gitHubRepository empty" (){
- given:
- underTest.gitHubRepository == ""
-
- when:
- underTest.updateReleaseNotes()
-
- then:
- def ex = thrown(GradleException)
- ex.message == "':updateReleaseNotes.gitHubRepository' must be configured."
- }
-
def "should fail if releaseNotesFile is not configured and not in preview mode" (){
given:
underTest.gitHubRepository = "mockito/mockito"
