public class AsyncTest extends Object
AsyncTest.run(1000, ass-> Thread(()-> ass.assertEquals(1, 1) ass() ) )
Assert can be invoked from the `ass` objectpublic static void run(int timeout,
Consumer<Assert> fun)
throws InterruptedException
timeout - test timeoutfun - the function to run. this function accepts one param `ass`, which contains many assertion templates.InterruptedException - when the waiting thread is interruptedCopyright © 2017. All rights reserved.