/*******************************************************************************
* Copyright (c) 2007 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.common.model.ui.test;
import org.jboss.tools.common.model.ui.jarproperties.JarPropertiesTest;
import org.jboss.tools.common.model.ui.templates.configuration.MetaClassTemplateHelperTest;
import org.jboss.tools.common.model.ui.test.preferences.ModelUiPreferencesPageTest;
import org.jboss.tools.common.model.ui.views.palette.test.PaletteInsertHelperTest;
import junit.framework.JUnit4TestAdapter;
import junit.framework.Test;
import junit.framework.TestSuite;
/**
* @author eskimo
*
*/
public class ModelUiAllTests {
public static final String PLUGIN_ID = "org.jboss.tools.common.model.ui";
public static Test suite() {
TestSuite suite = new TestSuite();
suite.setName("All tests for " + PLUGIN_ID);
suite.addTestSuite(MetaClassTemplateHelperTest.class);
suite.addTest(new JUnit4TestAdapter(ModelUiPreferencesPageTest.class));
suite.addTestSuite(ObjectDecoratorTest.class);
//suite.addTestSuite(ReportProblemWizardTest.class);
// FIXME does not run in Tycho-based build:
// ERROR in ../common/tests/org.jboss.tools.common.model.ui.test/
// src/org/jboss/tools/common/model/ui/reporting/ReportProblemWizardTest.java (at line 17)
// [exec] import junit.extensions.ExceptionTestCase;
// [exec] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
// [exec] The import junit.extensions.ExceptionTestCase cannot be resolved
suite.addTestSuite(JarPropertiesTest.class);
suite.addTestSuite(PaletteInsertHelperTest.class);
return suite;
}
}