Skip to content

Package: MultiReferenceCellEditorTester_Test

MultiReferenceCellEditorTester_Test

nameinstructionbranchcomplexitylinemethod
MultiReferenceCellEditorTester_Test()
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%
setUp()
M: 0 C: 6
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 2
100%
M: 0 C: 1
100%
testIsApplicable()
M: 0 C: 31
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 6
100%
M: 0 C: 1
100%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2011-2018 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: * Eugen Neufeld - initial API and implementation
13: ******************************************************************************/
14: package org.eclipse.emf.ecp.view.internal.table.swt.cell;
15:
16: import static org.junit.Assert.assertEquals;
17:
18: import org.eclipse.emf.ecore.EcorePackage;
19: import org.eclipse.emf.ecp.edit.spi.swt.table.ECPCellEditorTester;
20: import org.junit.Before;
21: import org.junit.Test;
22:
23: public class MultiReferenceCellEditorTester_Test {
24:
25:         private MultiReferenceCellEditorTester tester;
26:
27:         @Before
28:         public void setUp() throws Exception {
29:                 tester = new MultiReferenceCellEditorTester();
30:         }
31:
32:         @Test
33:         public void testIsApplicable() {
34:                 assertEquals(ECPCellEditorTester.NOT_APPLICABLE,
35:                         tester.isApplicable(null, EcorePackage.eINSTANCE.getENamedElement_Name(), null));
36:                 assertEquals(ECPCellEditorTester.NOT_APPLICABLE,
37:                         tester.isApplicable(null, EcorePackage.eINSTANCE.getEClassifier_EPackage(), null));
38:                 assertEquals(5, tester.isApplicable(null, EcorePackage.eINSTANCE.getEPackage_EClassifiers(), null));
39:
40:         }
41:
42: }