package Ġorg . at to . node Ċ Ċ import Ġio . cucumber . java . Before Ċ import Ġio . cucumber . spring . C ucumber Context Configuration Ċ import Ġkotlinx . coroutines . test . run Test Ċ import Ġorg . at to . commons . At to PrivateKey Ċ import Ġorg . at to . node . network . peer . Peer Properties Ċ import Ġorg . at to . node . transaction . Transaction Ċ import Ġorg . at to . node . transaction . Transaction Repository Ċ import Ġorg . at to . protocol . At to Node Ċ import Ġorg . springframework . boot . test . context . SpringBootTest Ċ import Ġorg . springframework . context . Configurable ApplicationContext Ċ Ċ @ SpringBootTest ( web Environment Ġ= ĠSpring Boot Test . Web Environment . DEFINED _ PORT ) Ċ @ C ucumber Context Configuration Ċ class ĠC ucumber Configuration ( ĊĠĠĠ Ġval Ġcontext : ĠConfigur able ApplicationContext , ĊĠĠĠ Ġval Ġthis Node : ĠAt to Node , ĊĠĠĠ Ġval Ġpeer Properties : ĠPeer Properties , ĊĠĠĠ Ġval ĠprivateKey : ĠAt to PrivateKey , ĊĠĠĠ Ġval Ġgenesis Transaction : ĠTransaction , ĊĠĠĠ Ġval Ġcaches : ĠList < Cache Support >, ĊĠĠĠ Ġval Ġrepositories : ĠList < At to Repository >, ĊĠĠĠ Ġval Ġtransaction Repository : ĠTransaction Repository Ċ ) Ġ{ ĊĠĠĠ Ġ@ Before ĊĠĠĠ Ġfun ĠsetUp () Ġ= Ġrun Test Ġ{ ĊĠĠĠĠĠĠĠ Ġrepositories . forEach Ġ{ Ġit . delete All () Ġ} ĊĠĠĠĠĠĠĠ Ġtransaction Repository . save ( genesis Transaction ) ĊĊĠĠĠĠĠĠĠ Ġcaches . forEach Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġit . clear () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġit . init () ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġpeer Properties . default Nodes . clear () ĊĊĠĠĠĠĠĠĠ ĠProperty Holder . clear () ĊĠĠĠĠĠĠĠ ĠProperty Holder . add (" THIS ", Ġcontext ) ĊĠĠĠĠĠĠĠ ĠProperty Holder . add (" THIS ", Ġthis Node ) ĊĠĠĠĠĠĠĠ ĠProperty Holder . add (" THIS ", ĠprivateKey ) ĊĠĠĠĠĠĠĠ ĠProperty Holder . add (" THIS ", ĠprivateKey . to PublicKey ()) ĊĠĠĠĠĠĠĠ ĠProperty Holder . add (" THIS ", Ġgenesis Transaction ) ĊĊĠĠĠĠĠĠĠ ĠNode Holder . clear ( context ) ĊĠĠĠĠĠĠĠ ĠNode Holder . add ( context ) ĊĠĠĠ Ġ} Ċ }