NanoContainer
  1. NanoContainer
  2. NANO-183

WebContainerBuilderTestCase Test Failures on Windows Machine

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.1
    • Component/s: webcontainer
    • Labels:
      None
    • Environment:
      Windows JDK 1.5
    • Number of attachments :
      0

      Description

      The offending code in 3 test cases:

      xmlWebApplication(path:'/bar', warfile:'"testWar.getAbsolutePath()"')" +

      Under windows, testWar.getAbsolutePath() retrieves backslashes by which Groovy complains loudly with the exception:

      testCanComposeWebContainerAndWarFile(org.nanocontainer.webcontainer.groovy.WebContainerBuilderTestCase) Time elapsed: 1.015 sec <<< ERROR!
      org.nanocontainer.script.groovy.GroovyCompilationException: Compilation Failed 'startup failed, nanocontainer.groovy: 9: unexpected char: '\' @ line 9, column 51.
      1 error
      '

      at org.nanocontainer.script.groovy.GroovyContainerBuilder.createGroovyClass(GroovyContainerBuilder.java:102)
      at org.nanocontainer.script.groovy.GroovyContainerBuilder.<init>(GroovyContainerBuilder.java:50)
      at org.nanocontainer.webcontainer.groovy.WebContainerBuilderTestCase.buildContainer(WebContainerBuilderTestCase.java:255)
      at org.nanocontainer.webcontainer.groovy.WebContainerBuilderTestCase.assertPageIsHostedWithContents(WebContainerBuilderTestCase.java:239)
      at org.nanocontainer.webcontainer.groovy.WebContainerBuilderTestCase.testCanComposeWebContainerAndWarFile(WebContainerBuilderTestCase.java:140)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at junit.framework.TestCase.runTest(TestCase.java:154)
      at junit.framework.TestCase.runBare(TestCase.java:127)
      at junit.framework.TestResult$1.protect(TestResult.java:106)
      at junit.framework.TestResult.runProtected(TestResult.java:124)
      at junit.framework.TestResult.run(TestResult.java:109)
      at junit.framework.TestCase.run(TestCase.java:118)
      at junit.framework.TestSuite.runTest(TestSuite.java:208)
      at junit.framework.TestSuite.run(TestSuite.java:203)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:210)
      at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:135)
      at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:122)
      at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225)
      at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747)

        Activity

        Hide
        Michael Rimov added a comment -

        I would consider this one critical to me for a release.

        -Mike (R)

        Show
        Michael Rimov added a comment - I would consider this one critical to me for a release. -Mike (R)
        Michael Rimov made changes -
        Field Original Value New Value
        Priority Major [ 3 ] Critical [ 2 ]
        Paul Hammant made changes -
        Assignee Paul Hammant [ paul ]
        Hide
        Paul Hammant added a comment -

        This building on Windows now Mike ?

        Show
        Paul Hammant added a comment - This building on Windows now Mike ?
        Hide
        Michael Rimov added a comment -

        Build working on windows with latest commit.

        Thanks Paul!

        -Mike (R)

        Show
        Michael Rimov added a comment - Build working on windows with latest commit. Thanks Paul! -Mike (R)
        Michael Rimov made changes -
        Fix Version/s 1.1 [ 12307 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Paul Hammant
            Reporter:
            Michael Rimov
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: