/******************************************************************************* * Copyright (c) 2012 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 * * Contributor: * Red Hat, Inc. - initial API and implementation ******************************************************************************/ package org.jboss.tools.jsf.ui.test.refactoring; import java.util.ArrayList; import java.util.List; import junit.framework.TestCase; import org.eclipse.core.resources.IFile; import org.eclipse.core.resources.IProject; import org.eclipse.jdt.core.IJavaProject; import org.eclipse.jdt.core.IMethod; import org.eclipse.jdt.core.IType; import org.eclipse.jdt.core.JavaModelException; import org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponentClasspathUpdater; import org.jboss.tools.common.EclipseUtil; import org.jboss.tools.common.base.test.RenameParticipantTestUtil.TestChangeStructure; import org.jboss.tools.test.util.ProjectImportTestSetup; public class ELRefactoringTest extends TestCase { static String jsfProjectName = "testJSFProject"; static IProject jsfProject; public ELRefactoringTest(String name){ super(name); } protected void setUp() throws Exception { loadProjects(); List<IProject> projectList = new ArrayList<IProject>(); projectList.add(jsfProject); J2EEComponentClasspathUpdater.getInstance().forceUpdate(projectList); loadProjects(); } private void loadProjects() throws Exception { jsfProject = ProjectImportTestSetup.loadProject(jsfProjectName); } }