/*******************************************************************************
* Copyright (c) 2010-2013 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.jsf.kb.test;
import junit.framework.Test;
import junit.framework.TestSuite;
import org.jboss.tools.common.base.test.model.XProjectImportTestSetUp;
import org.jboss.tools.test.util.ProjectImportTestSetup;
/**
* @author Alexey Kazakov
*/
public class JsfKbAllTests {
public static Test suite() {
TestSuite suiteAll = new TestSuite("JSF Core Tests");
TestSuite suite = new TestSuite(JsfKbAllTests.class.getName());
suite.addTestSuite(FaceletsKbModelTest.class);
suite.addTestSuite(KbModelTest.class);
ProjectImportTestSetup testSetup = new XProjectImportTestSetUp(suite,
"org.jboss.tools.jsf.test",
new String[]{"projects/TestKbModel"},
new String[]{"TestKbModel"});
suiteAll.addTest(testSetup);
suite = new TestSuite(WebWithModuleTest.class.getName());
suite.addTestSuite(WebWithModuleTest.class);
testSetup = new XProjectImportTestSetUp(suite,
"org.jboss.tools.jst.web.kb.test",
new String[]{"projects/utility", "projects/webapp"},
new String[]{"utility", "webapp"});
suiteAll.addTest(testSetup);
suiteAll.addTest(new ProjectImportTestSetup(new TestSuite(
PageProcesorInELDetectionTest.class), "org.jboss.tools.jsf.base.test", //$NON-NLS-1$
new String[] { "projects/jsf2pr" }, //$NON-NLS-1$
new String[] { "jsf2pr" })); //$NON-NLS-1$
return suiteAll;
}
}