+1 Jinmei
> On Jan 26, 2016, at 2:02 PM, Dan Smith <dsm...@pivotal.io> wrote: > > 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