Skip to content

verifyAll fails for void conditions #886

@leonard84

Description

@leonard84
  def "verifyAll works with void methods"() {
    expect:
    verifyAll {
      checkCondition()
    }
  }

  void checkCondition() {
    assert true
  }

should pass but fails with

Condition not satisfied:

checkCondition()
|
null

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions