Table of Contents

Module - Test configurations

The aim of this tutorial is show the way, how to test module provided configurations (and all registrable configurable components). Every module provide it's configuration properties. In CzechIdM 9.7.7 was added support to test this configurations - "formal" test are implemented:

What do you need before you start

Source codes for this tutorial can be found in the example module

01 Create integration test

In core test api module abstract test AbstractConfigurableIntegrationTest was prepared, we need to init this test only:

import eu.bcvsolutions.idm.test.api.AbstractConfigurableIntegrationTest;
 
/**
 * Check example configurations.
 */
public class ExampleConfigurableIntegrationTest extends AbstractConfigurableIntegrationTest {
}

And that is all :)

02 Run integration test

Configuration name and provided property names will be covered by integration test.