Testing fabric sdk code #fabric-sdk-java


jeff.jo95z@...
 

Hi All,

Actually I was testing fabric sdk code. I have this blocklistener:

Consumer<BlockEvent> blockListener = blockEvent -> {

//some code

}
//outside

//some code

while testing it with JUNit testcases, the execution only happens at :

Consumer<BlockEvent> blockListener = blockEvent -> {

 

then it is coming after the lamda part (outside listener object).Codes inside the listener is not executed.

Is it possible to execute the lines inside the listener implementation?