close

Filter

loading table of contents...

Release Notes / Version 11.2310

Table Of Contents

Enhanced 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 convenient async / await syntax may be used. This replaces the cumbersome JooUnit TestCase.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.

Please have a look at AbstractCatalogTest and its subclasses for examples of these two changes.

(CMS-22955)

Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

Please use Mozilla Firefox, Google Chrome, or Microsoft Edge.