Uploaded image for project: '[Read Only] - Hippo Essentials'
  1. [Read Only] - Hippo Essentials
  2. ESSENTIALS-576

Windows: Unit test failure building the Essentials project on Windows

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • 1.02.07
    • 1.03.00, CMS-10.0-FCS
    • None
    • None

    Description

      This issue is about building the Essentials project on Windows, not running / creating a new application using Essentials

      When doing a clean install on Essentials branch and trunk the following unit tests fail:

      Tests in error:
      FilePluginServiceTest.testPluginService>BaseTest.tearDown:87
      InstallerDocumentTest.testGetPluginId>BaseTest.tearDown:87
      MemoryPluginEventListenerTest.testOnPluginEvent>BaseTest.tearDown:87
      WebXmlTest.testParsing>BaseTest.tearDown:87
      java.io.IOException: Unable to delete file: C:\Users\AppData\Local\Temp\project\essentials\src\main\resources\project-settings.xml
      at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:2192)

      DependencyUtilsTest.testDependencies:106 ยป NullPointer

      CndInstructionTest.testProcess
      java.lang.AssertionError: Expected success but got: FAILED
      at org.junit.Assert.fail(Assert.java:88)
      at org.junit.Assert.assertTrue(Assert.java:41)
      at org.onehippo.cms7.essentials.dashboard.instruction.CndInstructionTest.testProcess(CndInstructionTest.java:64)

      DependencyUtilsTest.testDependencies
      java.lang.NullPointerException: null
      at org.onehippo.cms7.essentials.dashboard.utils.DependencyUtils.isEnterpriseProject(DependencyUtils.java:276)
      at org.onehippo.cms7.essentials.dashboard.utils.DependencyUtilsTest.testDependencies(DependencyUtilsTest.java:106)
      ERROR - [Error parsing pom ] - at org.onehippo.cms7.essentials.dashboard.utils.ProjectUtils.getPomModel(ProjectUtils.java:289)
      java.io.FileNotFoundException: C:\Program%20Files%20(x86)\workspace\org_7.09_hippo-essentials\plugin-sdk\implementation\target\test-classes\project\pom.xml (The system cannot find the path specified)
      at java.io.FileInputStream.open(Native Method)
      at java.io.FileInputStream.<init>(FileInputStream.java:146)
      at java.io.FileInputStream.<init>(FileInputStream.java:101)
      at java.io.FileReader.<init>(FileReader.java:58)
      at org.onehippo.cms7.essentials.dashboard.utils.ProjectUtils.getPomModel(ProjectUtils.java:285)

      Attachments

        Activity

          People

            Unassigned Unassigned
            abanck Arent-Jan Banck (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: