@Target(value=METHOD) @Retention(value=RUNTIME) public @interface Step
Step
annotated method depends on its predecessor.
Using this annotation it's possible to force the methods to be executed in the order they are defined in the class.TestClass
.DependsOn
which
links to it's predecessor method.
@TestClass
class MyTest {
@Step
def void step1() {
}
@Step
def void step2() {
}
}
Leads to:
@TestClass
public class MyTest {
@Step
public void step1() {
}
@Step
@DependsOn(value = "step1")
public void step2() {
}
Copyright © 2018–2020 b+m Informatik AG. All rights reserved.