blob: ebad7a58455c1f30cf8472579dcf8686396ccd31 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2011-2013 EclipseSource Muenchen GmbH and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Eugen Neufeld - initial API and implementation
******************************************************************************/
package org.eclipse.emf.ecp.ui.view.editor.controls.test;
import static org.junit.Assert.assertEquals;
import java.util.Set;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecp.ui.view.editor.test.model.test.TestPackage;
import org.eclipse.emf.ecp.view.spi.editor.controls.Helper;
import org.junit.Test;
/**
* @author Eugen Neufeld
*
*/
public class SelectAttributes_Test {
@Test
public void testFindReferencableClasses() {
final Set<EClass> datasegmentSubclasses = Helper.getDatasegmentSubclasses(TestPackage.eINSTANCE.getComponent());
assertEquals(3, datasegmentSubclasses.size());
}
}