Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-9711

JbpmJUnitBaseTestCase no longer uses default datasource properties

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 7.54.0.Final
    • 7.53.0.Final
    • Runtime Engine
    • None
    • False
    • False
    • NEW
    • NEW
    • Undefined
    • Hide

      Run the attached reproducer, note that it does not fail using 7.39:

      mvn test -D jbpm.version=7.39.0.Final-redhat-00005
      

       

      Show
      Run the attached reproducer, note that it does not fail using 7.39: mvn test -D jbpm.version=7.39.0.Final-redhat-00005  

      Extending JbpmJUnitBaseTestCase now requires to include a datasource.properties file if the setupDataSource parameter is set to true.

      Failure:

      java.lang.AssertionError: Unable to load datasource properties [/datasource.properties]
      
      	....
      	at org.jbpm.test.persistence.util.PersistenceUtil.getDatasourceProperties(PersistenceUtil.java:236)
      	at org.jbpm.test.AbstractBaseTest.getDataSourceProperties(AbstractBaseTest.java:50)
      	at org.jbpm.test.AbstractBaseTest.setupPoolingDataSource(AbstractBaseTest.java:58)
      	at org.jbpm.test.JbpmJUnitBaseTestCase.setUp(JbpmJUnitBaseTestCase.java:223)
              ....
      

      The same code worked before this change in 7.40.x.

              antferna Antonio Fernandez Alhambra (Inactive)
              antferna Antonio Fernandez Alhambra (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: