Skip to content

Commit

Permalink
Verify the method reflection is given to method invocations
Browse files Browse the repository at this point in the history
  • Loading branch information
Vampire committed Jun 6, 2023
1 parent 3832c9e commit 1e4a3a7
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ class FooSpec extends Specification {
assert instance == sharedInstance
assert target != instance
assert method
assert !method.reflection
}
proceed(it, 'shared initializer', "$it.spec.name")
}
Expand All @@ -172,6 +173,7 @@ class FooSpec extends Specification {
assert instance == sharedInstance
assert target == instance
assert method
assert method.reflection
}
proceed(it, 'shared initializer method', "$it.spec.name.$it.method.name()")
}
Expand All @@ -183,6 +185,7 @@ class FooSpec extends Specification {
assert instance == sharedInstance
assert target != instance
assert method
assert !method.reflection
}
proceed(it, 'specification', "$it.spec.name")
}
Expand All @@ -194,6 +197,7 @@ class FooSpec extends Specification {
assert instance == sharedInstance
assert target != instance
assert method
assert !method.reflection
}
proceed(it, 'setup spec', "$it.spec.name")
}
Expand All @@ -205,6 +209,7 @@ class FooSpec extends Specification {
assert instance == sharedInstance
assert target == instance
assert method
assert method.reflection
}
proceed(it, 'setup spec method', "$it.spec.name.$it.method.name()")
}
Expand All @@ -216,6 +221,7 @@ class FooSpec extends Specification {
assert instance == sharedInstance
assert target != instance
assert method
assert !method.reflection
}
proceed(it, 'feature', "$it.spec.name.$it.feature.name")
}
Expand All @@ -227,6 +233,7 @@ class FooSpec extends Specification {
assert instance != sharedInstance
assert target != instance
assert method
assert !method.reflection
}
proceed(it, 'initializer', "$it.spec.name.$it.feature.name")
}
Expand All @@ -238,6 +245,7 @@ class FooSpec extends Specification {
assert instance != sharedInstance
assert target == instance
assert method
assert method.reflection
}
proceed(it, 'initializer method', "$it.spec.name.$it.feature.name.$it.method.name()")
}
Expand All @@ -249,6 +257,7 @@ class FooSpec extends Specification {
assert instance != sharedInstance
assert target != instance
assert method
assert !method.reflection
}
proceed(it, 'iteration', "$it.spec.name.$it.feature.name[#$it.iteration.iterationIndex]")
}
Expand All @@ -260,6 +269,7 @@ class FooSpec extends Specification {
assert instance != sharedInstance
assert target != instance
assert method
assert !method.reflection
}
proceed(it, 'setup', "$it.spec.name.$it.feature.name[#$it.iteration.iterationIndex]")
}
Expand All @@ -271,6 +281,7 @@ class FooSpec extends Specification {
assert instance != sharedInstance
assert target == instance
assert method
assert method.reflection
}
proceed(it, 'setup method', "$it.spec.name.$it.feature.name[#$it.iteration.iterationIndex].$it.method.name()")
}
Expand All @@ -282,6 +293,7 @@ class FooSpec extends Specification {
assert instance != sharedInstance
assert target == instance
assert method
assert method.reflection
}
proceed(it, 'feature method', "$it.spec.name.$it.feature.name[#$it.iteration.iterationIndex].$it.method.name()")
}
Expand All @@ -293,6 +305,7 @@ class FooSpec extends Specification {
assert instance != sharedInstance
assert target != instance
assert method
assert !method.reflection
}
proceed(it, 'cleanup', "$it.spec.name.$it.feature.name[#$it.iteration.iterationIndex]")
}
Expand All @@ -304,6 +317,7 @@ class FooSpec extends Specification {
assert instance != sharedInstance
assert target == instance
assert method
assert method.reflection
}
proceed(it, 'cleanup method', "$it.spec.name.$it.feature.name[#$it.iteration.iterationIndex].$it.method.name()")
}
Expand All @@ -315,6 +329,7 @@ class FooSpec extends Specification {
assert instance == sharedInstance
assert target != instance
assert method
assert !method.reflection
}
proceed(it, 'cleanup spec', "$it.spec.name")
}
Expand All @@ -326,6 +341,7 @@ class FooSpec extends Specification {
assert instance == sharedInstance
assert target == instance
assert method
assert method.reflection
}
proceed(it, 'cleanup spec method', "$it.spec.name.$it.method.name()")
}
Expand All @@ -343,6 +359,7 @@ class FooSpec extends Specification {
}
assert target == instance
assert method
assert method.reflection
}
proceed(it, 'fixture method', "$it.spec.name${it.feature?.name?.with { name -> ".$name[#$it.iteration.iterationIndex]" } ?: ''}.$it.method.name()")
}
Expand Down

0 comments on commit 1e4a3a7

Please sign in to comment.