Package ru.tinkoff.kora.test.extension.junit5
package ru.tinkoff.kora.test.extension.junit5
-
ClassDescription
ApplicationGraphDrawabstraction forKoraAppTestIn case you want to initializeKoraAppGraphper Test Class, annotate your Test Class withTestInstance.Lifecycle.PER_CLASS, by defaultTestInstance.Lifecycle.PER_METHODis used, indicating that newKoraAppGraphwill be initialized each Test MethodIs useful when some part of configuration should be modified before test execution Example: Can be used to change config using TestContainer container portsIs useful whenApplicationGraphDrawis needed to be modified before test executionConfigs insideKoraConfigFileare merged in user specified method order"application.conf" configuration modification for tests with system propertiesConfigs insideKoraConfigStringare merged in user specified method orderConfigs insideKoraConfigSystemPropertiesare merged in user specified method orderIndicate thatComponentfrom graph is expected to be injected in test