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

CommandHandlerParsingTest#testExperimentalCommandIsDisabled() don't works

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.8
    • None
    • None

    Description

      parseArgs(Arrays.asList(WAL.text(), WAL_PRINT)); and parseArgs(Arrays.asList(WAL.text(), WAL_DELETE)); should throw IllegalArgumentException, but it isn't.

      How to reproduce:

      Replace test to:

          /**
           * Test that experimental command (i.e. WAL command) is disabled by default.
           */
          @Test
          public void testExperimentalCommandIsDisabled() {
              System.clearProperty(IGNITE_ENABLE_EXPERIMENTAL_COMMAND);
      
              GridTestUtils.assertThrows(null, ()->parseArgs(Arrays.asList(WAL.text(), WAL_PRINT)), IllegalArgumentException.class, null);
      
              GridTestUtils.assertThrows(null, ()->parseArgs(Arrays.asList(WAL.text(), WAL_DELETE)), IllegalArgumentException.class, null);
          }
      

      Attachments

        Issue Links

          Activity

            People

              ktkalenko@gridgain.com Kirill Tkalenko
              antonovsergey93 Sergey Antonov
              Votes:
              0 Vote for this issue
              Watchers:
              5 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 - 20m
                  20m