On 14.04.2010 12:03, Jan Haderka wrote:

I think what you see is related to MAGNOLIA-2593. There is a workaround
for this issue shown for example at
TransactionalSyndicatorTest.initDefaultImplementations() method.

Thanks a lot, Jan.
Now it works.

Matteo

this is the code I had to introduce (for mailing-list trace and shortcut):

***
ModuleRegistry registry;

protected void initDefaultImplementations() throws IOException {
        registry = createStrictMock(ModuleRegistry.class);
        FactoryUtil.setInstance(ModuleRegistry.class, registry);
FactoryUtil.setInstance(ModuleManager.class, new ModuleManagerImpl(null, new ModuleDefinitionReader() { public ModuleDefinition read(Reader in) throws ModuleManagementException {
                return null;
            }
            public Map readAll() throws ModuleManagementException {
                Map m = new HashMap();
                m.put("moduleDef", "dummy");
                return m;
            }
public ModuleDefinition readFromResource(String resourcePath) throws ModuleManagementException {
                return null;
            }}) {
public List loadDefinitions() throws ModuleManagementException {
                // TODO Auto-generated method stub
                return new ArrayList();
            }
        });
        super.initDefaultImplementations();
    }
***

remember to set java 1.5 compiling in maven.


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

Reply via email to