Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-13001

test failure in org.jboss.tools.maven.conversion.tests.ProjectDependencyCollectorTest

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.0.0.Beta2
    • Fix Version/s: 4.0.0.Beta2
    • Component/s: maven
    • Labels:
      None

      Description

      Two test failures when running with either Tycho 0.15.0 or 0.16.0:

      mvn clean install -DtychoVersion=0.15.0
      or
      mvn clean install -DtychoVersion=0.16.0

      [INFO] org.jboss.tools.maven.configurators.tests ......... FAILURE [7:27.625s]
      [INFO] org.jboss.tools.maven.conversion.test ............. FAILURE [25.040s]
      [INFO] org.jboss.tools.maven.test.feature ................ SKIPPED
      [INFO] central.maven.examples.site ....................... SKIPPED
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 18:54.880s
      [INFO] Finished at: Tue Nov 06 08:35:52 EST 2012
      [INFO] Final Memory: 214M/672M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.eclipse.tycho:tycho-surefire-plugin:0.16.0:test (default-test) on project org.jboss.tools.maven.configurators.tests: There are test failures.
      [ERROR] 
      [ERROR] Please refer to /home/nboldt/eclipse/workspace-jboss/jbosstools-github/central/maven/tests/org.jboss.tools.maven.configurators.tests/target/surefire-reports for the individual test results.
      [ERROR] -> [Help 1]
      [ERROR] Failed to execute goal org.eclipse.tycho:tycho-surefire-plugin:0.16.0:test (default-test) on project org.jboss.tools.maven.conversion.test: There are test failures.
      [ERROR] 
      [ERROR] Please refer to /home/nboldt/eclipse/workspace-jboss/jbosstools-github/central/maven/tests/org.jboss.tools.maven.conversion.test/target/surefire-reports for the individual test results.
      
      -------------------------------------------------------------------------------
      Test set: org.jboss.tools.maven.conversion.tests.ProjectDependencyCollectorTest
      -------------------------------------------------------------------------------
      Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 6.986 sec <<< FAILURE!
      testCollectEarDependencies(org.jboss.tools.maven.conversion.tests.ProjectDependencyCollectorTest)  Time elapsed: 4.457 sec  <<< FAILURE!
      junit.framework.AssertionFailedError: expected:<5> but was:<4>
      	at junit.framework.Assert.fail(Assert.java:50)
      	at junit.framework.Assert.failNotEquals(Assert.java:287)
      	at junit.framework.Assert.assertEquals(Assert.java:67)
      	at junit.framework.Assert.assertEquals(Assert.java:199)
      	at junit.framework.Assert.assertEquals(Assert.java:205)
      	at org.jboss.tools.maven.conversion.tests.ProjectDependencyCollectorTest.testCollectEarDependencies(ProjectDependencyCollectorTest.java:25)
      	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 junit.framework.TestCase.runTest(TestCase.java:168)
      	at junit.framework.TestCase.runBare(TestCase.java:134)
      	at junit.framework.TestResult$1.protect(TestResult.java:110)
      	at junit.framework.TestResult.runProtected(TestResult.java:128)
      	at junit.framework.TestResult.run(TestResult.java:113)
      	at junit.framework.TestCase.run(TestCase.java:124)
      	at junit.framework.TestSuite.runTest(TestSuite.java:243)
      	at junit.framework.TestSuite.run(TestSuite.java:238)
      	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
      	at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
      	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.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
      	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
      	at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
      	at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:123)
      	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:84)
      	at org.eclipse.tycho.surefire.osgibooter.AbstractUITestApplication.runTests(AbstractUITestApplication.java:44)
      	at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(WorkbenchTestable.java:71)
      	at java.lang.Thread.run(Thread.java:662)
      testCollectWarDependencies(org.jboss.tools.maven.conversion.tests.ProjectDependencyCollectorTest)  Time elapsed: 1.936 sec

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  fbricon Fred Bricon
                  Reporter:
                  nickboldt Nick Boldt
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: