Release Notes / Version 11.2310
Table Of ContentsEnhanced JooUnit Tests
In all JooUnit tests, the following two refactorings have been applied to improve readability:
An update to the JooUnit framework allows defining asynchronous tests in simpler syntax. A test method may now return a
Promise<void>
to signal that it is waiting for asynchronous calls to finish. For that, the convenientasync
/await
syntax may be used. This replaces the cumbersome JooUnitTestCase.addAsync()
method and makes test code much more readable.Instead of inheriting from
AbstractCapRestTest
, tests that mock REST calls now use the new, more consistent and comprehensive utility functions from@coremedia/studio-client.client-core-test-helper
and@coremedia/studio-client.cap-rest-client-test-helper
.
Follow Section, “Enhanced JooUnit Tests” for upgrade information.
(CMS-22955)