Package: RecursiveTemplateInvocation

RecursiveTemplateInvocation

nameinstructionbranchcomplexitylinemethod
RecursiveTemplateInvocation()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getModuleLocation()
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getReferencePath()
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
testRecursiveTemplateInvocation()
M: 18 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 5 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*******************************************************************************
2: * ¤¤COPYRIGHT¤¤
3: *
4: * Contributors:
5: * Obeo - initial API and implementation
6: *******************************************************************************/
7: package org.eclipse.acceleo.engine.tests.unit.blocks.templateinvocation;
8:
9: import java.io.IOException;
10:
11: import org.eclipse.acceleo.engine.tests.unit.AbstractAcceleoTest;
12: import org.junit.Test;
13:
14: public class RecursiveTemplateInvocation extends AbstractAcceleoTest {
15:
16:         /**
17:          * {@inheritDoc}
18:          *
19:          * @see org.eclipse.acceleo.engine.tests.unit.AbstractAcceleoTest#getModuleLocation()
20:          */
21:         @Override
22:         public String getModuleLocation() {
23:                 return "data/TemplateInvocation/recursive_template_invocation.mtl"; //$NON-NLS-1$
24:         }
25:
26:         /**
27:          * {@inheritDoc}
28:          *
29:          * @see org.eclipse.acceleo.engine.tests.unit.AbstractAcceleoTest#getReferencePath()
30:          */
31:         @Override
32:         public String getReferencePath() {
33:                 return "TemplateInvocation"; //$NON-NLS-1$
34:         }
35:
36:         /**
37:          * Tests that the template invocations can be used as parameters of other template invocations.
38:          *
39:          * @throws IOException
40:          * Thrown when the output cannot be saved.
41:          */
42:         @Test
43:         public void testRecursiveTemplateInvocation() throws IOException {
44:                 this.init("RecursiveTemplateInvocation"); //$NON-NLS-1$
45:                 this.generate("recursive_source_is_argument", defaultStrategy); //$NON-NLS-1$
46:                 this.generate("recursive_source_is_not_argument", defaultStrategy); //$NON-NLS-1$
47:                 this.compareDirectories();
48:         }
49: }