同步操作将从 githubsync/vertx-examples 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
Here you’ll find some examples of how to use Vert.x unit to test your asynchronous applications.
Tests are located in the link:src/test/java/io/vertx/example/unit/test directory.
Examples can be run directly from the IDE.
The link:src/test/java/io/vertx/example/unit/test/VertxUnitTest.java demonstrates how the Vert.x Unit API can be used to run tests using the Vert.x Unit test runner.
Run this example by running the main
method.
Vert.x Unit can be used with Junit:
link:src/test/java/io/vertx/example/unit/test/MyJunitTest.java demonstrates how to use the Vert.x Unit Junit runner to execute your tests
link:src/test/java/io/vertx/example/unit/test/ParameterizedTest.java demonstrates how to inject parameters into your Junit tests
link:src/test/java/io/vertx/example/unit/test/RunOnContextTest.java demonstrates how to delegate Vert.x instance creation to Vert.x Unit and how to use a rule to run the test methods on the event loop (caution: they must be non-blocking)
link:src/test/java/io/vertx/example/unit/test/JUnitAndAssertJTest.java demonstrates how to use AssertJ in combination with Vert.x Unit
link:src/test/java/io/vertx/example/unit/test/JUnitAndHamcrestTest.java demonstrates how to use Hamcrest in combination with Vert.x Unit
All the tests can be run from your IDE, or directly with Maven:
mvn clean test
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。