Skip to content

Package: TemplateCollectionTest

TemplateCollectionTest

nameinstructionbranchcomplexitylinemethod
TemplateCollectionTest(String)
M: 7 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 3 C: 0
0%
M: 1 C: 0
0%
getFixture()
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%
main(String[])
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
setFixture(TemplateCollection)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
setUp()
M: 5 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
tearDown()
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /**
2: * Copyright (c) 2011-2019 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: * EclipseSource Muenchen GmbH - initial API and implementation
13: */
14: package org.eclipse.emfforms.datatemplate.tests;
15:
16: import junit.framework.TestCase;
17:
18: import junit.textui.TestRunner;
19:
20: import org.eclipse.emfforms.datatemplate.DataTemplateFactory;
21: import org.eclipse.emfforms.datatemplate.TemplateCollection;
22:
23: /**
24: * <!-- begin-user-doc -->
25: * A test case for the model object '<em><b>Template Collection</b></em>'.
26: * <!-- end-user-doc -->
27: * @generated
28: */
29: public class TemplateCollectionTest extends TestCase {
30:
31:         /**
32:          * The fixture for this Template Collection test case.
33:          * <!-- begin-user-doc -->
34:          * <!-- end-user-doc -->
35:          * @generated
36:          */
37:         protected TemplateCollection fixture = null;
38:
39:         /**
40:          * <!-- begin-user-doc -->
41:          * <!-- end-user-doc -->
42:          * @generated
43:          */
44:         public static void main(String[] args) {
45:                 TestRunner.run(TemplateCollectionTest.class);
46:         }
47:
48:         /**
49:          * Constructs a new Template Collection test case with the given name.
50:          * <!-- begin-user-doc -->
51:          * <!-- end-user-doc -->
52:          * @generated
53:          */
54:         public TemplateCollectionTest(String name) {
55:                 super(name);
56:         }
57:
58:         /**
59:          * Sets the fixture for this Template Collection test case.
60:          * <!-- begin-user-doc -->
61:          * <!-- end-user-doc -->
62:          * @generated
63:          */
64:         protected void setFixture(TemplateCollection fixture) {
65:                 this.fixture = fixture;
66:         }
67:
68:         /**
69:          * Returns the fixture for this Template Collection test case.
70:          * <!-- begin-user-doc -->
71:          * <!-- end-user-doc -->
72:          * @generated
73:          */
74:         protected TemplateCollection getFixture() {
75:                 return fixture;
76:         }
77:
78:         /**
79:          * <!-- begin-user-doc -->
80:          * <!-- end-user-doc -->
81:          * @see junit.framework.TestCase#setUp()
82:          * @generated
83:          */
84:         @Override
85:         protected void setUp() throws Exception {
86:                 setFixture(DataTemplateFactory.eINSTANCE.createTemplateCollection());
87:         }
88:
89:         /**
90:          * <!-- begin-user-doc -->
91:          * <!-- end-user-doc -->
92:          * @see junit.framework.TestCase#tearDown()
93:          * @generated
94:          */
95:         @Override
96:         protected void tearDown() throws Exception {
97:                 setFixture(null);
98:         }
99:
100: } //TemplateCollectionTest