Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-18421

Integration Test produces Error

    XMLWordPrintable

Details

    Description

      When I create a skeleton plugin, then I write a skeleton Integration test extending JIRAWebTest. Then I override setUp() then call super.setUp(). Then I include a test that does nothing. (I also have a fully developed plugin that works on a standalone both 3.11 and 3.13 and get the same error).
      And I get an error as follows:

      -------------------------------------------------------------------------------
      Test set: it.AdminInstanceActionTest
      -------------------------------------------------------------------------------
      Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.235 sec <<< FAILURE!
      testThis(it.AdminInstanceActionTest) Time elapsed: 0.094 sec <<< FAILURE!
      junit.framework.AssertionFailedError: No form present
      at junit.framework.Assert.fail(Assert.java:47)
      at junit.framework.Assert.assertTrue(Assert.java:20)
      at net.sourceforge.jwebunit.WebTester.assertFormPresent(WebTester.java:353)
      at net.sourceforge.jwebunit.WebTester.setFormElement(WebTester.java:787)
      at net.sourceforge.jwebunit.WebTestCase.setFormElement(WebTestCase.java:317)
      at com.atlassian.jira.webtests.JIRAWebTest.setupJIRAstep1(JIRAWebTest.java:580)
      at com.atlassian.jira.webtests.JIRAWebTest.setupJIRA(JIRAWebTest.java:488)
      at com.atlassian.jira.webtests.JIRAWebTest.init(JIRAWebTest.java:463)
      at com.atlassian.jira.webtests.JIRAWebTest.setUp(JIRAWebTest.java:447)
      at it.AdminInstanceActionTest.setUp(AdminInstanceActionTest.java:29)
      at junit.framework.TestCase.runBare(TestCase.java:125)
      at junit.framework.TestResult$1.protect(TestResult.java:106)
      at junit.framework.TestResult.runProtected(TestResult.java:124)
      at junit.framework.TestResult.run(TestResult.java:109)
      at junit.framework.TestCase.run(TestCase.java:118)
      at junit.framework.TestSuite.runTest(TestSuite.java:208)
      at junit.framework.TestSuite.run(TestSuite.java:203)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
      at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
      at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
      at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
      at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)
      at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)

      Attachments

        Activity

          People

            dalonso Diego Alonso [Atlassian]
            45d3ea356a0f Alan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: