diff --git a/src/test/groovy/nebula/plugin/dependencylock/tasks/GenerateLockTaskSpec.groovy b/src/test/groovy/nebula/plugin/dependencylock/tasks/GenerateLockTaskSpec.groovy index d4bf2249..4914b1bd 100644 --- a/src/test/groovy/nebula/plugin/dependencylock/tasks/GenerateLockTaskSpec.groovy +++ b/src/test/groovy/nebula/plugin/dependencylock/tasks/GenerateLockTaskSpec.groovy @@ -41,7 +41,7 @@ class GenerateLockTaskSpec extends ProjectSpec { task.configurationNames = [ 'testRuntime' ] when: - task.execute() + task.lock() then: String lockText = '''\ @@ -90,7 +90,7 @@ class GenerateLockTaskSpec extends ProjectSpec { }'''.stripIndent() when: - task.execute() + task.lock() then: task.dependenciesLock.text == lockText @@ -118,7 +118,7 @@ class GenerateLockTaskSpec extends ProjectSpec { task.configurationNames= [ 'testRuntime' ] when: - task.execute() + task.lock() then: String lockText = '''\ @@ -164,7 +164,7 @@ class GenerateLockTaskSpec extends ProjectSpec { task.includeTransitives = true when: - task.execute() + task.lock() then: String lockText = '''\ @@ -217,7 +217,7 @@ class GenerateLockTaskSpec extends ProjectSpec { task.configurationNames= [ 'testRuntime' ] when: - task.execute() + task.lock() then: String lockText = '''\ @@ -291,7 +291,7 @@ class GenerateLockTaskSpec extends ProjectSpec { task.configurationNames= [ 'testRuntime' ] when: - task.execute() + task.lock() then: String lockText = '''\ @@ -338,7 +338,7 @@ class GenerateLockTaskSpec extends ProjectSpec { task.includeTransitives = true when: - task.execute() + task.lock() then: String lockText = '''\ @@ -373,7 +373,7 @@ class GenerateLockTaskSpec extends ProjectSpec { task.includeTransitives = true when: - task.execute() + task.lock() then: String lockText = '''\ @@ -411,7 +411,7 @@ class GenerateLockTaskSpec extends ProjectSpec { task.includeTransitives = true when: - task.execute() + task.lock() then: String lockText = '''\ @@ -454,7 +454,7 @@ class GenerateLockTaskSpec extends ProjectSpec { task.includeTransitives = true when: - task.execute() + task.lock() then: String lockText = '''\ @@ -500,7 +500,7 @@ class GenerateLockTaskSpec extends ProjectSpec { task.includeTransitives = true when: - task.execute() + task.lock() then: String lockText = '''\ @@ -555,7 +555,7 @@ class GenerateLockTaskSpec extends ProjectSpec { task.filter = filter as Closure when: - task.execute() + task.lock() then: task.dependenciesLock.text == lockText diff --git a/src/test/groovy/nebula/plugin/dependencylock/tasks/GenerateLockTaskWithWaybackSpec.groovy b/src/test/groovy/nebula/plugin/dependencylock/tasks/GenerateLockTaskWithWaybackSpec.groovy index de18018a..a1f27346 100644 --- a/src/test/groovy/nebula/plugin/dependencylock/tasks/GenerateLockTaskWithWaybackSpec.groovy +++ b/src/test/groovy/nebula/plugin/dependencylock/tasks/GenerateLockTaskWithWaybackSpec.groovy @@ -48,7 +48,7 @@ class GenerateLockTaskWithWaybackSpec extends ProjectSpec { def 'lock both configurations using wayback data'() { when: - task.execute() + task.lock() def locks = new JsonSlurper().parse(task.dependenciesLock) then: @@ -70,7 +70,7 @@ class GenerateLockTaskWithWaybackSpec extends ProjectSpec { '''.stripMargin() when: - task.execute() + task.lock() def locks = new JsonSlurper().parse(task.dependenciesLock) then: @@ -91,7 +91,7 @@ class GenerateLockTaskWithWaybackSpec extends ProjectSpec { '''.stripMargin() when: - task.execute() + task.lock() def locks = new JsonSlurper().parse(task.dependenciesLock) then: diff --git a/src/test/groovy/nebula/plugin/dependencylock/tasks/UpdateLockTaskSpec.groovy b/src/test/groovy/nebula/plugin/dependencylock/tasks/UpdateLockTaskSpec.groovy index baa23cc2..8554fa0a 100644 --- a/src/test/groovy/nebula/plugin/dependencylock/tasks/UpdateLockTaskSpec.groovy +++ b/src/test/groovy/nebula/plugin/dependencylock/tasks/UpdateLockTaskSpec.groovy @@ -88,7 +88,7 @@ class UpdateLockTaskSpec extends ProjectSpec { ) when: - task.execute() + task.lock() then: task.dependenciesLock.text == updatedLock