Uploaded image for project: '[Read Only] - Hippo Site Toolkit 2'
  1. [Read Only] - Hippo Site Toolkit 2
  2. HSTTWO-2025

Fix the hst-jaxrs unit tests while at the same time enable logging in the HstParameterInfoProxyFactoryImpl again

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • 2.25.01-alpha
    • None
    • None

    Description

      Woonsan, could you perhaps take a look because I don't get it:

      The HstParameterInfoProxyFactoryImpl has moved to the hst-commons. I want logging in it. so added

      private static final Logger log = HstServices.getLogger(HstParameterInfoProxyFactoryImpl.class.getName());

      Since this, hst-jaxrs unit tests fail (initialization error of HstParameterInfoProxyFactoryImpl logger). Hence I added to

      https://svn.onehippo.org/repos/hippo/hippo-cms7/site-toolkit/trunk/components/jaxrs/src/test/resources/org/hippoecm/hst/jaxrs/services/content/TestContentServices.xml

      the following spring import

      <import resource="classpath:/org/hippoecm/hst/site/container/SpringComponentManager-trace.xml" />

      then it does not fail on initialization error, but it gives me for all tests:

      testGetTextPageResource(org.hippoecm.hst.jaxrs.services.content.TestTextPageContentResource): Error creating bean with name 'resourceLifecycleManagementList' defined in class path resource [org/hippoecm/hst/site/container/SpringComponentManager-pipelines.xml]: Cannot create inner bean 'org.springframework.beans.factory.config.PropertyPathFactoryBean#6691177' of type [org.springframework.beans.factory.config.PropertyPathFactoryBean] while setting bean property 'sourceList'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.beans.factory.config.PropertyPathFactoryBean#6691177': Post-processing of the FactoryBean's object failed; nested exception is java.lang.AssertionError

      I have looked at it for quite some time, but I just can't seem to find the problem.

      Could you have a look?

      I'll now comment the parts that break the unit tests.

      Also note that the tests work fine in eclipse, but not with 'mvn clean install'

      Thanks in advance, regards Ard

      Attachments

        Issue Links

          Activity

            People

              jsheriff Junaidh Kadhar Sheriff
              aschrijvers Ard Schrijvers
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: