Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-9947

TestBean prevents execution of units tests for confluence module when run individually

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • 2.7
    • 2.6.0
    • None

    Description

      Running mvn test in confluence module results in the following stacktrace:

      org.apache.maven.surefire.booter.SurefireExecutionException: Unable to instantiate POJO 'class com.atlassian.confluence.extra.testplugin.TestBean'; nested exception is java.lang.IllegalAccessException: Class org.apache.maven.surefire.testset.PojoTestSet can not access a member of class com.atlassian.confluence.extra.testplugin.TestBean with modifiers ""; nested exception is org.apache.maven.surefire.testset.TestSetFailedException: Unable to instantiate POJO 'class com.atlassian.confluence.extra.testplugin.TestBean'; nested exception is java.lang.IllegalAccessException: Class org.apache.maven.surefire.testset.PojoTestSet can not access a member of class com.atlassian.confluence.extra.testplugin.TestBean with modifiers ""
      org.apache.maven.surefire.testset.TestSetFailedException: Unable to instantiate POJO 'class com.atlassian.confluence.extra.testplugin.TestBean'; nested exception is java.lang.IllegalAccessException: Class org.apache.maven.surefire.testset.PojoTestSet can not access a member of class com.atlassian.confluence.extra.testplugin.TestBean with modifiers ""
      java.lang.IllegalAccessException: Class org.apache.maven.surefire.testset.PojoTestSet can not access a member of class com.atlassian.confluence.extra.testplugin.TestBean with modifiers ""
      at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:57)
      at java.lang.Class.newInstance0(Class.java:302)
      at java.lang.Class.newInstance(Class.java:261)
      at org.apache.maven.surefire.testset.PojoTestSet.<init>(PojoTestSet.java:55)
      at org.apache.maven.surefire.junit.JUnitDirectoryTestSuite.createTestSet(JUnitDirectoryTestSuite.java:64)
      at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateTestSets(AbstractDirectoryTestSuite.java:96)
      at org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Surefire.java:150)
      at org.apache.maven.surefire.Surefire.run(Surefire.java:111)
      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:324)
      at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireB

      Attachments

        Activity

          People

            Unassigned Unassigned
            alynch Andrew Lynch (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: