@@ -0,0 +1,1334 @@
+package org.nuxeo.ecm.platform.content.template.tests;%0A%0Aimport org.nuxeo.ecm.core.api.DocumentModel;%0Aimport org.nuxeo.ecm.core.api.DocumentModelList;%0Aimport org.nuxeo.ecm.core.repository.jcr.testing.RepositoryOSGITestCase;%0A%0A/**%0A*   Simple test class for ContentCreationListener%0A* @ JULIEN THIMONIER %3C jt@nuxeo.com %3E%0A**/%0Apublic class ContentCreationListenerTest extends RepositoryOSGITestCase %7B%0A%0A    @Override%0A    protected void setUp() throws Exception %7B%0A        super.setUp();%0A        deployBundle(%22org.nuxeo.ecm.platform.content.template%22);%0A        deployBundle(%22org.nuxeo.ecm.relations%22);%0A        openRepository();%0A    %7D%0A%0A    public void testContentCreationListener() throws Exception %7B%0A        DocumentModel root = getCoreSession().getRootDocument();%0A        DocumentModel model = getCoreSession().createDocumentModel(%0A                root.getPathAsString(), %22mondomaine%22, %22Domain%22);%0A        DocumentModel doc = getCoreSession().createDocument(model);%0A        getCoreSession().saveDocument(doc);%0A        assert (doc != null);%0A%0A        DocumentModelList modelList = getCoreSession().getChildren(doc.getRef());%0A%0A        // Check that 3 elements have been created on the new domain%0A        // (Section,Workspace and Templates)%0A        // This should be done by ContentCreationListener%0A        assert (modelList.size() == 3);%0A    %7D%0A%7D%0A

Add a new test case for ContentCreationListener