Release Notes / Version 11.2307
Table Of ContentsIn 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/awaitsyntax 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-helperand@coremedia/studio-client.cap-rest-client-test-helper.
Please have a look at
AbstractCatalogTest
and its subclasses for examples of these two changes.
(CMS-22955)


