/*******************************************************************************
* Copyright (c) 2011 Red Hat, Inc.
* Distributed under license by Red Hat, Inc. All rights reserved.
* This program is made available under the terms of the
* Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Red Hat, Inc. - initial API and implementation
******************************************************************************/
package org.jboss.tools.cdi.seam.config.core.test;
import java.io.IOException;
import java.util.Set;
import org.eclipse.core.runtime.CoreException;
import org.jboss.tools.cdi.core.CDICorePlugin;
import org.jboss.tools.cdi.core.ICDIProject;
import org.jboss.tools.cdi.core.extension.feature.IBuildParticipantFeature;
/**
*
* @author Viacheslav Kabanovich
*
*/
public class ExtensionTest extends SeamConfigTest {
public ExtensionTest() {}
public void testExtension() throws CoreException, IOException {
ICDIProject cdi = CDICorePlugin.getCDIProject(project, true);
Set<IBuildParticipantFeature> bp = cdi.getNature().getExtensionManager().getBuildParticipantFeatures();
System.out.println(bp.size());
}
}