Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-12666

Fix preview test latin1 when using windows

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.8
    • Component/s: Convert, Tests

      Description

      The following test fails under windows:
      org.nuxeo.ecm.platform.preview.tests.service.TestService.testLatin1

      Error Message
      
       Expected: a string containing "Test de prévisualisation avant rattachement"      got: "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2//EN\">\r\n\r\n<HTML>\r\n<HEAD>\r\n\t\r\n\t<META HTTP-EQUIV=\"CONTENT-TYPE\" CONTENT=\"text/html; charset=windows-1252\">\r\n\t<TITLE></TITLE>\r\n\t<META NAME=\"GENERATOR\" CONTENT=\"LibreOffice 3.4  (Win32)\">\r\n\t<META NAME=\"CREATED\" CONTENT=\"0;0\">\r\n\t<META NAME=\"CHANGED\" CONTENT=\"0;0\">\r\n\t\r\n\t<STYLE>\r\n\t\t<!-- \r\n\t\tBODY,DIV,TABLE,THEAD,TBODY,TFOOT,TR,TH,TD,P { font-family:\"Arial\"; font-size:x-small }\r\n\t\t -->\r\n\t</STYLE>\r\n\t\r\n</HEAD>\r\n\r\n<BODY TEXT=\"#000000\">\r\n<TABLE FRAME=VOID CELLSPACING=0 COLS=1 RULES=NONE BORDER=0>\r\n\t<COLGROUP><COL WIDTH=305></COLGROUP>\r\n\t<TBODY>\r\n\t\t<TR>\r\n\t\t\t<TD WIDTH=305 HEIGHT=18 ALIGN=LEFT>Test de pr&Atilde;&copy;visualisation avant rattachement|pfff</TD>\r\n\t\t</TR>\r\n\t</TBODY>\r\n</TABLE>\r\n<!-- ************************************************************************** -->\r\n</BODY>\r\n\r\n</HTML>\r\n" 
      
      Stacktrace
      
      java.lang.AssertionError: 
      Expected: a string containing "Test de prévisualisation avant rattachement"
           got: "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2//EN\">\r\n\r\n<HTML>\r\n<HEAD>\r\n\t\r\n\t<META HTTP-EQUIV=\"CONTENT-TYPE\" CONTENT=\"text/html; charset=windows-1252\">\r\n\t<TITLE></TITLE>\r\n\t<META NAME=\"GENERATOR\" CONTENT=\"LibreOffice 3.4  (Win32)\">\r\n\t<META NAME=\"CREATED\" CONTENT=\"0;0\">\r\n\t<META NAME=\"CHANGED\" CONTENT=\"0;0\">\r\n\t\r\n\t<STYLE>\r\n\t\t<!-- \r\n\t\tBODY,DIV,TABLE,THEAD,TBODY,TFOOT,TR,TH,TD,P { font-family:\"Arial\"; font-size:x-small }\r\n\t\t -->\r\n\t</STYLE>\r\n\t\r\n</HEAD>\r\n\r\n<BODY TEXT=\"#000000\">\r\n<TABLE FRAME=VOID CELLSPACING=0 COLS=1 RULES=NONE BORDER=0>\r\n\t<COLGROUP><COL WIDTH=305></COLGROUP>\r\n\t<TBODY>\r\n\t\t<TR>\r\n\t\t\t<TD WIDTH=305 HEIGHT=18 ALIGN=LEFT>Test de pr&Atilde;&copy;visualisation avant rattachement|pfff</TD>\r\n\t\t</TR>\r\n\t</TBODY>\r\n</TABLE>\r\n<!-- ************************************************************************** -->\r\n</BODY>\r\n\r\n</HTML>\r\n"
      
      	at org.junit.Assert.assertThat(Assert.java:778)
      	at org.junit.Assert.assertThat(Assert.java:736)
      	at org.nuxeo.ecm.platform.preview.tests.service.TestService.checkLatin1(TestService.java:85)
      	at org.nuxeo.ecm.platform.preview.tests.service.TestService.testLatin1(TestService.java:73)
      	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.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.nuxeo.runtime.test.runner.FeaturesRunner$InvokeMethod.evaluate(FeaturesRunner.java:354)
      	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.nuxeo.runtime.test.runner.FeaturesRunner.run(FeaturesRunner.java:298)
      	at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
      	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:164)
      	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
      	at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
      	at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)
      	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)
      
      Standard Output
      
      07:13:41,450 WARN  [CommandLineExecutorComponent] Command not available: wpd2text (command wpd2text not found in system path. You need to install wpd2text (deb: libwpd-tools)  http://libwpd.sourceforge.net/download.html)
      DatabaseHelper: Database used for VCS tests: org.nuxeo.ecm.core.storage.sql.DatabasePostgreSQL
      07:13:45,105 ERROR [OSGiRuntimeService] Nuxeo EP Started
      ======================================================================
      = Component Loading Status: Pending: 1 / Unstarted: 0 / Total: 60
        * service:org.nuxeo.ecm.platform.preview.theme requires [service:org.nuxeo.theme.nuxeo.default]
      ======================================================================
      
      Standard Error
      
      Oct 01, 2013 7:13:45 AM org.artofsolving.jodconverter.util.PlatformUtils searchExistingfile
      INFO: Jod will be using C:\Program Files (x86)\LibreOffice 3.4
      Oct 01, 2013 7:13:46 AM org.artofsolving.jodconverter.office.ProcessPoolOfficeManager <init>
      INFO: ProcessManager implementation is WindowsProcessManager
      Oct 01, 2013 7:13:47 AM org.artofsolving.jodconverter.office.OfficeProcess doStart
      INFO: starting process with acceptString 'socket,host=127.0.0.1,port=2002,tcpNoDelay=1' and profileDir 'C:\Users\nuxeo\AppData\Local\Temp\.jodconverter_socket_host-127.0.0.1_port-2002_14'
      Oct 01, 2013 7:13:54 AM org.artofsolving.jodconverter.office.OfficeProcess doStart
      INFO: started process : pid = 3172
      Oct 01, 2013 7:14:20 AM org.artofsolving.jodconverter.office.OfficeConnection connect
      INFO: connected: 'socket,host=127.0.0.1,port=2002,tcpNoDelay=1'
      
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: