Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-15486

Implement configuration extension to inject configuration mocks in tests

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0-alpha3
    • None

    Description

      Following API is desired:

      @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());
      }
      

      Attachments

        Issue Links

          Activity

            People

              ibessonov Ivan Bessonov
              ibessonov Ivan Bessonov
              Kirill Tkalenko Kirill Tkalenko
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 40m
                  1h 40m