Skip to content

Package: TemplateChildrenDescriptorExtension_PTest

TemplateChildrenDescriptorExtension_PTest

nameinstructionbranchcomplexitylinemethod
TemplateChildrenDescriptorExtension_PTest()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
testStyleChildren()
M: 0 C: 7
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 4
100%
M: 0 C: 1
100%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2011-2017 EclipseSource Muenchen GmbH and others.
3: *
4: * All rights reserved. This program and the accompanying materials
5: * are made available under the terms of the Eclipse Public License 2.0
6: * which accompanies this distribution, and is available at
7: * https://www.eclipse.org/legal/epl-2.0/
8: *
9: * SPDX-License-Identifier: EPL-2.0
10: *
11: * Contributors:
12: * Johannes Faltermeier - initial API and implementation
13: ******************************************************************************/
14: package org.eclipse.emf.ecp.view.model.integrationtest;
15:
16: import static org.junit.Assert.assertEquals;
17:
18: import org.eclipse.emf.ecp.view.template.model.VTTemplatePackage;
19: import org.junit.Test;
20:
21: public class TemplateChildrenDescriptorExtension_PTest {
22:
23:         private static final int SELECTOR_COUNT = 5;
24:         private static final int PROPERTY_COUNT = 15;
25:
26:         @Test
27:         public void testStyleChildren() {
28:                 assertEquals(
29:                         SELECTOR_COUNT +
30:                                 PROPERTY_COUNT,
31:                         ChildrenDescriptorExtension_PTest
32:                                 .getChildrenSize(VTTemplatePackage.eINSTANCE.getStyle()));
33:         }
34:
35: }