You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Kirill Tkalenko (Jira)" <ji...@apache.org> on 2021/09/10 08:42:00 UTC

[jira] [Commented] (IGNITE-15486) Implement configuration extension to inject configuration mocks in tests

    [ https://issues.apache.org/jira/browse/IGNITE-15486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17413053#comment-17413053 ] 

Kirill Tkalenko commented on IGNITE-15486:
------------------------------------------

[~ibessonov] Looks good.

> Implement configuration extension to inject configuration mocks in tests
> ------------------------------------------------------------------------
>
>                 Key: IGNITE-15486
>                 URL: https://issues.apache.org/jira/browse/IGNITE-15486
>             Project: Ignite
>          Issue Type: Improvement
>            Reporter: Ivan Bessonov
>            Assignee: Ivan Bessonov
>            Priority: Major
>              Labels: iep-55, ignite-3
>             Fix For: 3.0.0-alpha3
>
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> Following API is desired:
> {code:java}
> @Test
> public void injectConfiguration(
>     @InjectConfiguration("mock.joinTimeout=100") DiscoveryConfiguration paramCfg
> ) throws ExecutionException, InterruptedException {
>     assertEquals(100, paramCfg.joinTimeout().value());
>     paramCfg.joinTimeout().update(300);
>     assertEquals(300, paramCfg.joinTimeout().value());
> }
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)