1. Project Clover database Tue Dec 20 2016 21:24:09 CET
  2. Package org.xwiki.component.embed

File InitializableLifecycleHandler.java

 
testDisplayMacroWhenSectionSpecified: Failed to lookup default document displayer.
testIncludeMacroWhenSectionSpecified: Failed to lookup default document displayer.
verifySubHeadingVelocityVariableCorrectlyEvaluatedWhenUsedInSection: Failed to lookup default document displayer.
webRssFiltersHiddenDocuments: Failed to lookup default document displayer.
testDisplayMacroShowsVelocityMacrosAreIsolated: Failed to lookup component [org.xwiki.test.rendering.velo...
executeWithIdGeneratedByVelocityMacro: Failed to lookup component [org.xwiki.test.rendering.velo...
testIncludeMacroWhenIncludingDocumentWithRelativeReferences: Failed to lookup default document displayer.
testIncludeMacroWithCurrentContextShowsVelocityMacrosAreShared: Failed to lookup component [org.xwiki.test.rendering.velo...
testIncludeMacroWithNewContextShowsVelocityMacrosAreIsolated: Failed to lookup component [org.xwiki.test.rendering.velo...
webRssDisplay: Failed to lookup default document displayer.
executeWhenNoIdAndSameContent: Failed to lookup component [org.xwiki.test.rendering.velo...
executeWhenNoIdAndDifferentContent: Failed to lookup component [org.xwiki.test.rendering.velo...
testIncludeMacroWithNewContextShowsPassingOnRestrictedFlag: Failed to lookup default document displayer.
testDisplayMacroWhenDisplayingDocumentWithRelativeReferences: Failed to lookup default document displayer.
executeWhenSameIdAndDifferentContent: Failed to lookup component [org.xwiki.test.rendering.velo...
 

Coverage histogram

../../../../img/srcFileCovDistChart10.png
0% of files have more coverage

Code metrics

2
2
1
1
42
15
2
1
2
1
2

Classes

Class Line # Actions
InitializableLifecycleHandler 32 2 0% 2 0
1.0100%
 

Contributing tests

This file is covered by 3359 tests. .

Source view

1    /*
2    * See the NOTICE file distributed with this work for additional
3    * information regarding copyright ownership.
4    *
5    * This is free software; you can redistribute it and/or modify it
6    * under the terms of the GNU Lesser General Public License as
7    * published by the Free Software Foundation; either version 2.1 of
8    * the License, or (at your option) any later version.
9    *
10    * This software is distributed in the hope that it will be useful,
11    * but WITHOUT ANY WARRANTY; without even the implied warranty of
12    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13    * Lesser General Public License for more details.
14    *
15    * You should have received a copy of the GNU Lesser General Public
16    * License along with this software; if not, write to the Free
17    * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
18    * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
19    */
20    package org.xwiki.component.embed;
21   
22    import org.xwiki.component.descriptor.ComponentDescriptor;
23    import org.xwiki.component.manager.ComponentManager;
24    import org.xwiki.component.phase.Initializable;
25   
26    /**
27    * Handles lifecycle for {@link InitializableLifecycleHandler}.
28    *
29    * @version $Id: f859e2d8063e72d715d982086e70439212d7e196 $
30    * @since 3.2RC1
31    */
 
32    public class InitializableLifecycleHandler implements LifecycleHandler
33    {
 
34  337427 toggle @Override
35    public <T> void handle(T instance, ComponentDescriptor<T> descriptor, ComponentManager componentManager)
36    throws Exception
37    {
38  337427 if (Initializable.class.isAssignableFrom(descriptor.getImplementation())) {
39  145646 Test failure here ((Initializable) instance).initialize();
40    }
41    }
42    }