Issue Type: Bug Bug
Assignee: Unassigned
Created: 03/Oct/13 12:47 PM
Description:

info.magnolia.test.ComponentsTestUtil use Static Initializers for setMagnoliaConfigurationProperties into SystemProperty. So they are set when the class is initialized, but the problem is there is no clean way how to set them if they were clean. Only how they can be set again is call ComponentsTestUtil.clear() method. What is really ugly to setMagnoliaConfigurationProperties on clear...

This cause problem when maven do the test during build.
Example of problem:
Lets have info.magnolia.ui.form.field.transformer.composite.CompositeTransformerTest and info.magnolia.ui.form.field.factory.BasicUploadFieldFactoryTest.
Run CompositeTransformerTest as first. CompositeTransformerTest extends RepositoryTestCase. During this test is ComponentsTestUtil initialized so setMagnoliaConfigurationProperties are sets and after test tearDown is called. TearDown do SystemProperty.clear(). So MagnoliaConfigurationProperties are not set in SystemProperty for next tests.
Run BasicUploadFieldFactoryTest MagnoliaConfigurationProperties are not set and also ComponentsTestUtil was already initialized so Static Initializers is not call. This cause fail of BasicUploadFieldFactoryTest.

Fix Versions: 5.1.1
Project: Magnolia
Priority: Neutral Neutral
Reporter: Milan Divilek
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to