Uploaded image for project: 'honeycomb'
  1. honeycomb
  2. HONEYCOMB-275

Achieve @SuppressWarnings("JUnit4SetUpNotRun") globaly while using HoneycombTestRunner

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Low Low
    • 17.01
    • None
    • HC infra
    • None

      While using WriteCustomizerTest case with combination with HoneycombTestRunner

      Preconditons

      • Test class extends WriteCustomizerTest
      • Test class is using @RunWith(HoneycombTestRunner.class)
      • Test class is overriding setUp() from WriteCustomizerTest

      Error
      error: [JUnit4SetUpNotRun] setUp() method will not be run; Please add a @Before annotation
      protected void setUp() throws Exception

      Possible solutions

      • refactor setup method to different name
      • suppress this bug pattern while using WriteCustomizerTest

            jsrnicek_cisco Jan Srnicek
            jsrnicek_cisco Jan Srnicek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: