+1

That will make it so much easier to modify these tests without breaking things!

Le 1/26/2016 2:02 PM, Dan Smith a écrit :
I checked in a minor fix to allow you to use a lambda expression in
VM.invoke calls with our dunit framework. For example:

String result = vm1.invoke(() -> "Hello from vm1!");

I think we should replace all of the VM.invoke calls that use strings with
lambdas instead. That will give us better compile time checks and make it
easier navigate in the IDE.

This:
vm2.invoke(WANTestBase.class, "createReceiver", new Object[] { nyPort });

Should become:
vm2.invoke(() -> WANTestBase.createReceiver( nyPort ));

What do you guys think?
-Dan


Reply via email to