Uploaded image for project: 'Mahout'
  1. Mahout
  2. MAHOUT-649

Test org.apache.mahout.text.SequenceFilesFromMailArchivesTest fails on windows

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.5
    • Fix Version/s: 0.5
    • Component/s: None
    • Labels:
      None

      Description

      org.apache.mahout.text.SequenceFilesFromMailArchivesTest seems to be platform-dependent in assertion (path comparisons). Assertion fails on Windows

      stack trace:
      Test set: org.apache.mahout.text.SequenceFilesFromMailArchivesTest
      -------------------------------------------------------------------------------
      Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.144
      sec <<< FAILURE!
      testMain(org.apache.mahout.text.SequenceFilesFromMailArchivesTest)
      Time elapsed: 0.14 sec <<< FAILURE!
      org.junit.ComparisonFailure:
      expected:<TEST[/subdir/mail-messages.gz/]user@example.com> but
      was:<TEST[\subdir\mail-messages.gz]user@example.com>
      at org.junit.Assert.assertEquals(Assert.java:123)
      at org.junit.Assert.assertEquals(Assert.java:145)
      at org.apache.mahout.text.SequenceFilesFromMailArchivesTest.testMain(SequenceFilesFromMailArchivesTest.java:112)
      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.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
      at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
      at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
      at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
      at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
      at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
      at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
      at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
      at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
      at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
      at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
      at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
      at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
      at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
      at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
      at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:115)
      at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:102)
      at org.apache.maven.surefire.Surefire.run(Surefire.java:180)
      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:350)
      at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)

      introduced with commit :

      $ git log --stat 86e6e1d64901 -1
      commit 86e6e1d64901cc0ce436d43a56fcadb8a2cb6c1d
      Author: Grant Ingersoll <gsingers@apache.org>
      Date:   Fri Mar 25 14:39:25 2011 +0000
      
         MAHOUT-588: partial commit, not including shell script yet
      
         git-svn-id: https://svn.apache.org/repos/asf/mahout/trunk@1085408 13f79535-4
      
       .../text/MailArchivesClusteringAnalyzer.java       |  171 +++++++++++
       .../mahout/text/SequenceFilesFromMailArchives.java |  295 ++++++++++++++++++++
       .../text/MailArchivesClusteringAnalyzerTest.java   |   61 ++++
       .../text/SequenceFilesFromMailArchivesTest.java    |  214 ++++++++++++++
       4 files changed, 741 insertions(+), 0 deletions(-)
      

        Attachments

        1. MAHOUT-649.patch
          6 kB
          Sean R. Owen

          Activity

            People

            • Assignee:
              srowen Sean R. Owen
              Reporter:
              dlyubimov Dmitriy Lyubimov
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: