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

FileInstructionTest failure because system property project.basedir not configured

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • 4.3.0
    • 4.3.0
    • None
    • None
    • Platform 180

    Description

      Reproduction path:

      • cd plugin-sdk/implementation
      • mvn test -Dtest=FileInstructionTest
        [ERROR] testProcess(org.onehippo.cms7.essentials.plugin.sdk.instruction.FileInstructionTest)  Time elapsed: 0.027 s  <<< ERROR!
        java.lang.IllegalStateException: System property 'project.basedir' was null or empty. Please start your application with -D=project.basedir=/project/path
        	at org.onehippo.cms7.essentials.plugin.sdk.instruction.FileInstructionTest.testProcess(FileInstructionTest.java:47)

       This problem doesn't show up when running full test (all tests) and you're lucky another test already did setup the project.basedir property. But that depends on test execution order which is unreliable. 

      Attachments

        Activity

          People

            adouma Ate Douma
            adouma Ate Douma
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: