Uploaded image for project: 'Contrib: Evaluation System'
  1. Contrib: Evaluation System
  2. EVALSYS-1380

Test failures when building evalsys trunk with Java7

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: RESOLVED
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.4.1
    • Fix Version/s: None
    • Component/s: Administration
    • Labels:
      None

      Description

      There are two repeatable test failures when building evalsys trunk with Java7:

      Failed tests:
      testGetEvaluationsForOwnerAndGroups(org.sakaiproject.evaluation.dao.EvaluationDaoImplTest)
      testGetViewableGroupsForEvalAndUserByRole(org.sakaiproject.evaluation.logic.ReportingPermissionsImplTest)

      Tests run: 274, Failures: 2, Errors: 0, Skipped: 0

      <testcase time="0.031" classname="org.sakaiproject.evaluation.dao.EvaluationDaoImplTest" name="testGetEvaluationsForOwnerAndGroups">
      <failure message="expected:<27> but was:<18>" type="junit.framework.AssertionFailedError">junit.framework.AssertionFailedError: expected:<27> but was:<18>
      at junit.framework.Assert.fail(Assert.java:47)
      at junit.framework.Assert.failNotEquals(Assert.java:277)
      at junit.framework.Assert.assertEquals(Assert.java:64)
      at junit.framework.Assert.assertEquals(Assert.java:71)
      at org.sakaiproject.evaluation.dao.EvaluationDaoImplTest.testGetEvaluationsForOwnerAndGroups(EvaluationDaoImplTest.java:755)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:601)
      at junit.framework.TestCase.runTest(TestCase.java:168)
      at junit.framework.TestCase.runBare(TestCase.java:134)
      at org.springframework.test.ConditionalTestCase.runBare(ConditionalTestCase.java:69)
      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:232)
      at junit.framework.TestSuite.run(TestSuite.java:227)
      at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:79)
      at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:234)
      at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:133)
      at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:114)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:601)
      at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:188)
      at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:166)
      at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:86)
      at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:101)
      at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74)
      </failure>
      <system-err>Jul 16, 2013 10:50:52 AM org.springframework.test.AbstractTransactionalSpringContextTests startNewTransaction
      INFO: Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@d1ff12e]; default rollback = true
      Jul 16, 2013 10:50:52 AM org.springframework.test.AbstractTransactionalSpringContextTests endTransaction
      INFO: Rolled back transaction after test execution
      </system-err>

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  Unassigned Unassigned
                  Reporter:
                  bjones86 Brian Jones
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration