/******************************************************************************* * 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.seam.ui.test; import org.jboss.tools.common.base.test.validation.ValidationProjectTestSetup; import org.jboss.tools.seam.ui.test.ca.CASeamAddInfoInELMessagesTest; import org.jboss.tools.seam.ui.test.ca.SeamELContentAssistJbide1645Test; import org.jboss.tools.seam.ui.test.ca.SeamELContentAssistJbide1676Test; import org.jboss.tools.seam.ui.test.ca.SeamELContentAssistTest; import org.jboss.tools.seam.ui.test.ca.SeamJbide3845Test; import org.jboss.tools.seam.ui.test.el.ELExprPartitionerTest; import org.jboss.tools.seam.ui.test.hyperlink.SeamViewHyperlinkPartitionerTest; import org.jboss.tools.seam.ui.test.jbide.JBide3989Test; import org.jboss.tools.seam.ui.test.marker.SeamMarkerResolutionTest; import org.jboss.tools.seam.ui.test.preferences.SeamPreferencesPageTest; import org.jboss.tools.seam.ui.test.preferences.SeamSettingsPreferencesPageTest; import org.jboss.tools.seam.ui.test.search.SeamSearchTest; import org.jboss.tools.seam.ui.test.view.SeamComponentsViewAllTests; import org.jboss.tools.seam.ui.test.wizard.OpenSeamComponentDialogTest; import org.jboss.tools.seam.ui.test.wizard.PackageNamesTest; import org.jboss.tools.seam.ui.test.wizard.Seam20XCreateTestProjectTest; import org.jboss.tools.seam.ui.test.wizard.Seam20XProjectNamesTest; import org.jboss.tools.seam.ui.test.wizard.SeamCreateTestProjectTest; import org.jboss.tools.seam.ui.test.wizard.SeamFormNewWizardTest; import org.jboss.tools.seam.ui.test.wizard.SeamNewWizardTest; import org.jboss.tools.seam.ui.test.wizard.SeamProjectNamesTest; import org.jboss.tools.seam.ui.test.wizard.SeamProjectNewWizardTest; import org.jboss.tools.test.util.ProjectImportTestSetup; import junit.framework.JUnit4TestAdapter; import junit.framework.Test; import junit.framework.TestSuite; /** * @author eskimo * */ public class SeamUiAllTests { public static Test suite() { TestSuite suite = new TestSuite("Seam UI tests"); suite.addTest(new ProjectImportTestSetup(new TestSuite(SeamSearchTest.class), "org.jboss.tools.seam.ui.test", new String[]{"projects/TestComponentView"}, new String[]{"TestComponentView"})); // https://issues.jboss.org/browse/JBIDE-10149 Remove Seam 2 from the JBoss Perspective actions // suite.addTestSuite(JBossPerspectiveTest.class); suite.addTestSuite(ELExprPartitionerTest.class); //suite.addTestSuite(ELReferencesQueryParticipantTest.class); // suite.addTest(new ProjectImportTestSetup(new TestSuite(ELReferencesQueryParticipantTest.class), "org.jboss.tools.seam.ui.test", new String[]{"projects/numberguess"}, new String[]{"numberguess"})); suite.addTestSuite(OpenSeamComponentDialogTest.class); suite.addTest(SeamComponentsViewAllTests.suite()); suite.addTest(SeamProjectNewWizardTest.suite()); TestSuite wizards = new TestSuite("Seam Wizards tests"); wizards.addTestSuite(SeamNewWizardTest.class); suite.addTest(new ProjectImportTestSetup(wizards, "org.jboss.tools.seam.base.test", new String[]{"projects/Test1-ear", "projects/Test1-ejb", "projects/Test1"}, new String[]{"Test1-ear", "Test1-ejb", "Test1"})); suite.addTestSuite(SeamFormNewWizardTest.class); suite.addTest(new JUnit4TestAdapter(SeamPreferencesPageTest.class)); suite.addTestSuite(SeamViewHyperlinkPartitionerTest.class); suite.addTest(SeamELContentAssistTest.suite()); suite.addTestSuite(SeamELContentAssistJbide1676Test.class); suite.addTestSuite(SeamELContentAssistJbide1645Test.class); suite.addTestSuite(SeamJbide3845Test.class); // suite.addTest(new ProjectImportTestSetup(new TestSuite(SeamSettingsPreferencesPageTest.class), "org.jboss.tools.seam.ui.test", "projects/TestSeamSettingsPreferencesPage", "TestSeamSettingsPreferencesPage")); suite.addTestSuite(PackageNamesTest.class); suite.addTestSuite(JBide3989Test.class); suite.addTestSuite(SeamCreateTestProjectTest.class); suite.addTestSuite(Seam20XCreateTestProjectTest.class); suite.addTestSuite(SeamProjectNamesTest.class); suite.addTestSuite(Seam20XProjectNamesTest.class); suite.addTest(new ValidationProjectTestSetup(new TestSuite(SeamMarkerResolutionTest.class),"org.jboss.tools.seam.base.test","projects/SeamWebWarTestProject","SeamWebWarTestProject")); suite.addTest(new ProjectImportTestSetup(new TestSuite( CASeamAddInfoInELMessagesTest.class), "org.jboss.tools.seam.ui.test", //$NON-NLS-1$ new String[] { "projects/TestSeamELContentAssist", }, //$NON-NLS-1$ new String[] { "TestSeamELContentAssist" })); //$NON-NLS-1$ suite.addTest(new ProjectImportTestSetup(new TestSuite( SeamSettingsPreferencesPageTest.class), "org.jboss.tools.seam.ui.test", //$NON-NLS-1$ new String[] { "projects/TestSeamSettingsPreferencesPage", }, //$NON-NLS-1$ new String[] { "TestSeamSettingsPreferencesPage" })); //$NON-NLS-1$ return suite; } }