Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-40931

Persistence tests were throwing printing exceptions because model listeners expect real data, not fake data

    Details

      Description

      Run ant test-class -Dclass=LayoutPersistenceTest

      It randomly generates longs for every field that accepts a long.

      By default, LayoutPersistenceTest also has a com.liferay.portal.model.LayoutListener,com.liferay.portal.service.impl.LayoutSetPrototypeLayoutListener

      When a layout is deleted (which LayoutPersistenceTest tests), it will have a random group id (that LayoutPersistenceTest generated) and will print an error. It never threw an exception, so all tests passed, but the stack trace was ugly to look at.

      I made a DummyModelListener, and in portal-test.properties, set all those there.

        Attachments

          Activity

            People

            Assignee:
            brian.chan Brian Chan
            Reporter:
            brian.chan Brian Chan
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              7 years, 17 weeks, 4 days ago

                Packages

                Version Package
                6.2.0 CE RC4
                6.2.0 CE RC5