0 Replies Latest reply on Oct 15, 2013 4:54 PM by Tim McClure

    UberFire Test Failures on Windows

    Tim McClure Apprentice

      I am building the UberFire project on Windows and it is failing because of test failure - the errors are listed below - any ideas?

       

      Thanks

       

      -------------------------------------------------------

      T E S T S

      -------------------------------------------------------

      Running org.uberfire.java.nio.base.GeneralPathEqualsTest

      Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.295 sec

      Running org.uberfire.java.nio.base.GeneralPathTest

      Tests run: 29, Failures: 4, Errors: 0, Skipped: 0, Time elapsed: 0.306 sec <<< F

      AILURE!

      testRelativeToURIWindows(org.uberfire.java.nio.base.GeneralPathTest)  Time elaps

      ed: 19 sec  <<< FAILURE!

      org.junit.ComparisonFailure: expected:<'default:///C:[C:\uberfire-master\uberfir

      e-nio2-backport\]uberfire-nio2-model/...> but was:<'default:///C:[/uberfire-mast

      er/uberfire-nio2-backport/]uberfire-nio2-model/...>

              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

       

       

              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct

      orAccessorImpl.java:57)

              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC

      onstructorAccessorImpl.java:45)

              at org.uberfire.java.nio.base.GeneralPathTest.testRelativeToURIWindows(G

      eneralPathTest.java:459)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

      java:57)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

      sorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:606)

              at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(Framework

      Method.java:47)

              at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCal

      lable.java:12)

              at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMe

      thod.java:44)

              at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMet

      hod.java:17)

              at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)

              at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRun

      ner.java:70)

              at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRun

      ner.java:50)

              at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)

              at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)

              at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)

              at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)

              at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)

              at org.junit.runners.ParentRunner.run(ParentRunner.java:309)

              at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provide

      r.java:252)

              at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4

      Provider.java:141)

              at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider

      .java:112)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

      java:57)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

      sorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:606)

              at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(

      ReflectionUtils.java:189)

              at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke

      (ProviderFactory.java:165)

              at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(Provi

      derFactory.java:85)

              at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(Fork

      edBooter.java:115)

              at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:

      75)

       

       

      testSimpleRelativeUnix(org.uberfire.java.nio.base.GeneralPathTest)  Time elapsed

      : 21 sec  <<< FAILURE!

      org.junit.ComparisonFailure: expected:<'C:[\uberfire-master\uberfire-nio2-backpo

      rt\]uberfire-nio2-model/...> but was:<'C:[/uberfire-master/uberfire-nio2-backpor

      t/]uberfire-nio2-model/...>

              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

       

       

              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct

      orAccessorImpl.java:57)

              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC

      onstructorAccessorImpl.java:45)

              at org.uberfire.java.nio.base.GeneralPathTest.testSimpleRelativeUnix(Gen

      eralPathTest.java:205)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

      java:57)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

      sorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:606)

              at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(Framework

      Method.java:47)

              at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCal

      lable.java:12)

              at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMe

      thod.java:44)

              at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMet

      hod.java:17)

              at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)

              at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRun

      ner.java:70)

              at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRun

      ner.java:50)

              at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)

              at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)

              at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)

              at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)

              at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)

              at org.junit.runners.ParentRunner.run(ParentRunner.java:309)

              at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provide

      r.java:252)

              at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4

      Provider.java:141)

              at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider

      .java:112)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

      java:57)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

      sorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:606)

              at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(

      ReflectionUtils.java:189)

              at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke

      (ProviderFactory.java:165)

              at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(Provi

      derFactory.java:85)

              at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(Fork

      edBooter.java:115)

              at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:

      75)

       

       

      testRelativeToURIUnix(org.uberfire.java.nio.base.GeneralPathTest)  Time elapsed:

      8 sec  <<< FAILURE!

      java.lang.AssertionError: expecting actual not to be null

              at org.uberfire.java.nio.base.GeneralPathTest.testRelativeToURIUnix(Gene

      ralPathTest.java:413)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

      java:57)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

      sorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:606)

              at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(Framework

      Method.java:47)

              at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCal

      lable.java:12)

              at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMe

      thod.java:44)

              at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMet

      hod.java:17)

              at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)

              at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRun

      ner.java:70)

              at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRun

      ner.java:50)

              at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)

              at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)

              at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)

              at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)

              at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)

              at org.junit.runners.ParentRunner.run(ParentRunner.java:309)

              at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provide

      r.java:252)

              at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4

      Provider.java:141)

              at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider

      .java:112)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

      java:57)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

      sorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:606)

              at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(

      ReflectionUtils.java:189)

              at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke

      (ProviderFactory.java:165)

              at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(Provi

      derFactory.java:85)

              at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(Fork

      edBooter.java:115)

              at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:

      75)

       

       

      testSimpleRelativeWindows(org.uberfire.java.nio.base.GeneralPathTest)  Time elap

      sed: 13 sec  <<< FAILURE!

      org.junit.ComparisonFailure: expected:<'C:[C:]\uberfire-master\ube...> but was:<

      'C:[]\uberfire-master\ube...>

              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

       

       

              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct

      orAccessorImpl.java:57)

              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC

      onstructorAccessorImpl.java:45)

              at org.uberfire.java.nio.base.GeneralPathTest.testSimpleRelativeWindows(

      GeneralPathTest.java:342)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

      java:57)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

      sorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:606)

              at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(Framework

      Method.java:47)

              at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCal

      lable.java:12)

              at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMe

      thod.java:44)

              at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMet

      hod.java:17)

              at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)

              at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRun

      ner.java:70)

              at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRun

      ner.java:50)

              at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)

              at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)

              at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)

              at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)

              at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)

              at org.junit.runners.ParentRunner.run(ParentRunner.java:309)

              at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provide

      r.java:252)

              at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4

      Provider.java:141)

              at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider

      .java:112)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

      java:57)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

      sorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:606)

              at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(

      ReflectionUtils.java:189)

              at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke

      (ProviderFactory.java:165)

              at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(Provi

      derFactory.java:85)

              at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(Fork

      edBooter.java:115)

              at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:

      75)

       

       

      Running org.uberfire.java.nio.base.GeneralPathUnsupportedOpsTest

      Tests run: 3, Failures: 0, Errors: 0, Skipped: 2, Time elapsed: 0.022 sec

      Running org.uberfire.java.nio.base.GeneralPathValidationTest

      Tests run: 20, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.044 sec

      Running org.uberfire.java.nio.base.PropertiesTest

      Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.313 sec

      Running org.uberfire.java.nio.base.SeekableByteChannelTest

      Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec

       

       

      Results :

       

       

      Failed tests:   testRelativeToURIWindows(org.uberfire.java.nio.base.GeneralPathT

      est): expected:<'default:///C:[C:\uberfire-master\uberfire-nio2-backport\]uberfi

      re-nio2-model/...> but was:<'default:///C:[/uberfire-master/uberfire-nio2-backpo

      rt/]uberfire-nio2-model/...>

        testSimpleRelativeUnix(org.uberfire.java.nio.base.GeneralPathTest): expected:<

      'C:[\uberfire-master\uberfire-nio2-backport\]uberfire-nio2-model/...> but was:<'

      C:[/uberfire-master/uberfire-nio2-backport/]uberfire-nio2-model/...>

        testRelativeToURIUnix(org.uberfire.java.nio.base.GeneralPathTest): expecting a

      ctual not to be null

        testSimpleRelativeWindows(org.uberfire.java.nio.base.GeneralPathTest): expecte

      d:<'C:[C:]\uberfire-master\ube...> but was:<'C:[]\uberfire-master\ube...>

       

       

      Tests run: 60, Failures: 4, Errors: 0, Skipped: 2

       

       

      [INFO] ------------------------------------------------------------------------

      [INFO] Reactor Summary:

      [INFO]

      [INFO] UberFire Multiproject ............................. SUCCESS [2.837s]

      [INFO] Uberfire Commons .................................. SUCCESS [4.920s]

      [INFO] Uberfire NIO.2 Simple Backport .................... SUCCESS [0.329s]

      [INFO] Uberfire NIO.2 :: Model ........................... FAILURE [3.240s]

      [INFO] Uberfire NIO.2 :: Implementations ................. SKIPPED

      [INFO] KIE NIO.2 :: File System Impl ..................... SKIPPED

      [INFO] KIE NIO.2 :: JGIT Impl ............................ SKIPPED

      [INFO] Uberfire NIO.2 :: API ............................. SKIPPED

      [INFO] Kie Commons I/O ................................... SKIPPED

      [INFO] Uberfire Metadata ................................. SKIPPED

      [INFO] Uberfire Metadata API ............................. SKIPPED

      [INFO] Uberfire Metadata Backends ........................ SKIPPED

      [INFO] Uberfure Metadata Lucene Backend .................. SKIPPED

      [INFO] Uberfire Metadata Commons IO ...................... SKIPPED

      [INFO] UberFire Security ................................. SKIPPED

      [INFO] UberFire Security API ............................. SKIPPED

      [INFO] UberFire Security Client .......................... SKIPPED

      [INFO] UberFire Security Server .......................... SKIPPED

      [INFO] UberFire Backend .................................. SKIPPED

      [INFO] UberFire Backend API .............................. SKIPPED

      [INFO] UberFire API ...................................... SKIPPED

      [INFO] UberFire Server ................................... SKIPPED

      [INFO] UberFire Client API ............................... SKIPPED

      [INFO] UberFire Widgets .................................. SKIPPED

      [INFO] UberFire Widgets Commons .......................... SKIPPED

      [INFO] UberFire Workbench ................................ SKIPPED

      [INFO] UberFire Backend Server ........................... SKIPPED

      [INFO] UberFire Widgets Core ............................. SKIPPED

      [INFO] UberFire Widgets Core Client ...................... SKIPPED

      [INFO] Widgets Sandbox ................................... SKIPPED

      [INFO] Markdown Widget ................................... SKIPPED

      [INFO] UberFire JS ....................................... SKIPPED

      [INFO] UberFire Showcase ................................. SKIPPED

      [INFO] UberFire Showcase WebApp .......................... SKIPPED

      [INFO] Showcase distribution wars ........................ SKIPPED

      [INFO] ------------------------------------------------------------------------

      [INFO] BUILD FAILURE

      [INFO] ------------------------------------------------------------------------

      [INFO] Total time: 13.632s