Handle
annotation in io.proptastic
@interface HandleMarks, in a StepBuilder interface, a value steps make that later steps use, by the name
of its Handles: on a step’s method, @Handle("account") long open(), the step
keeps what the method returns; on a parameter, void deposit(@Handle("account") long account, long amount), the step draws one the run kept and hasn’t dropped, so its generated
method takes no domain for it, .deposit(amounts()).
The generated class of one step then has a reference for each name, account(1), the
first account the run kept, which its pins take where the step drew one: a failure pins .example(open(), deposit(account(1), 1L)), line for line as its steps read, var account1 = open() then deposit(account1, 1). A pin by name takes the same reference, step("close", account(1)).
Methods
value
String value()The handles’ name, a word a number can follow, as handles(name) takes it.