Skip to content

Package: SelectAttributes_Test

SelectAttributes_Test

nameinstructionbranchcomplexitylinemethod
SelectAttributes_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%
testFindReferencableClasses()
M: 0 C: 10
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 3
100%
M: 0 C: 1
100%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2011-2013 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.ui.view.editor.controls.test;
15:
16: import static org.junit.Assert.assertEquals;
17:
18: import java.util.Set;
19:
20: import org.eclipse.emf.ecore.EClass;
21: import org.eclipse.emf.ecp.ui.view.editor.test.model.test.TestPackage;
22: import org.eclipse.emf.ecp.view.spi.editor.controls.Helper;
23: import org.junit.Test;
24:
25: /**
26: * @author Eugen Neufeld
27: *
28: */
29: public class SelectAttributes_Test {
30:
31:         @Test
32:         public void testFindReferencableClasses() {
33:                 final Set<EClass> datasegmentSubclasses = Helper.getDatasegmentSubclasses(TestPackage.eINSTANCE.getComponent());
34:                 assertEquals(3, datasegmentSubclasses.size());
35:
36:         }
37: }