Uploaded image for project: 'Tupelo'
  1. Tupelo
  2. TUP-94

Bean tests fail on Windows

XMLWordPrintableJSON

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocking Blocking
    • 2.4
    • 2.4
    • Kernel
    • None

      Various bean tests fail in Windows; but different tests fail depending on how I build it.

      From IDEA's build and unit test runner, the single test that fails is BeanClassRdfMappingFactory.testFOAF. Here's the stack trace:

      org.tupeloproject.kernel.OperatorException: Error:
      at org.tupeloproject.kernel.BeanSession.fetchBean(BeanSession.java:383)
      at org.tupeloproject.kernel.beans.BeanClassRdfMappingFactoryTest.testFOAF(BeanClassRdfMappingFactoryTest.java:388)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:76)
      at com.intellij.rt.junit4.Junit4ClassSuite.run(Junit4ClassSuite.java:85)
      at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
      Caused by: java.lang.IllegalArgumentException: no recognized type found for tag:tupeloproject.org,2006:297f89c56790b109e32b707064f7c1c220f1f0ff
      at org.tupeloproject.kernel.beans.AbstractBeanCodec.fetchBean(AbstractBeanCodec.java:208)
      at org.tupeloproject.kernel.beans.AbstractBeanCodec.fetchBean(AbstractBeanCodec.java:164)
      at org.tupeloproject.kernel.beans.BeanCodecManager.fetchBean(BeanCodecManager.java:107)
      at org.tupeloproject.kernel.BeanSession.fetchBean(BeanSession.java:405)
      at org.tupeloproject.kernel.BeanSession.fetchBean(BeanSession.java:381)
      ... 28 more

      From Maven (invoked by IDEA), the following failures occur which appear to be related to java.io.File (and hence platform-specific stuff?)

      -------------------------------------------------------------------------------
      Test set: org.tupeloproject.kernel.beans.BeanProxyTest
      -------------------------------------------------------------------------------
      Tests run: 8, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 4.469 sec <<< FAILURE!
      testBeanProxyCreation(org.tupeloproject.kernel.beans.BeanProxyTest) Time elapsed: 3.453 sec <<< FAILURE!
      java.lang.AssertionError: File array incorrectly stored or retrieved
      at org.tupeloproject.kernel.beans.TestBase.compareContentBean(TestBase.java:390)
      at org.tupeloproject.kernel.beans.BeanProxyTest.testBeanProxyCreation(BeanProxyTest.java:80)
      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:232)
      at junit.framework.TestSuite.run(TestSuite.java:227)
      at org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:76)
      at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
      at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
      at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:163)
      at org.apache.maven.surefire.Surefire.run(Surefire.java:84)
      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:244)
      at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:814)

      testBeanProxyConversion(org.tupeloproject.kernel.beans.BeanProxyTest) Time elapsed: 0.047 sec <<< FAILURE!

      -------------------------------------------------------------------------------
      Test set: org.tupeloproject.kernel.beans.BeanSessionTest
      -------------------------------------------------------------------------------
      Tests run: 17, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 7.359 sec <<< FAILURE!
      testRegisterDeregister(org.tupeloproject.kernel.beans.BeanSessionTest) Time elapsed: 0.172 sec <<< FAILURE!
      java.lang.AssertionError: File array incorrectly stored or retrieved
      at org.tupeloproject.kernel.beans.TestBase.compareContentBean(TestBase.java:390)
      at org.tupeloproject.kernel.beans.BeanSessionTest.testRegisterDeregister(BeanSessionTest.java:41)
      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:232)
      at junit.framework.TestSuite.run(TestSuite.java:227)
      at org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:76)
      at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
      at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
      at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:163)
      at org.apache.maven.surefire.Surefire.run(Surefire.java:84)
      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:244)
      at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:814)

              jgaynor Jeffrey Gaynor
              futrelle Joe Futrelle (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: