/* * See the NOTICE file distributed with this work for additional * information regarding copyright ownership. * * This is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation; either version 2.1 of * the License, or (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this software; if not, write to the Free * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA * 02110-1301 USA, or see the FSF site: http://www.fsf.org. */ package org.xwiki.gwt.wysiwyg; import junit.framework.Test; import junit.framework.TestSuite; import org.xwiki.gwt.wysiwyg.client.plugin.internal.DefaultPluginFactoryManagerTest; import org.xwiki.gwt.wysiwyg.client.plugin.internal.DefaultPluginManagerTest; import org.xwiki.gwt.wysiwyg.client.plugin.internal.FocusWidgetUIExtensionTest; import com.google.gwt.junit.tools.GWTTestSuite; /** * All the client tests to be run. We're using a test suite because it decreases the overall testing time. GWTTestCase * derived tests are slow. This is because the JUnitShell has to load the module for each test (create the shell, hook * into it, etc). GWTTestSuite mitigates this by grouping all the tests that are for the same module (those that return * the same value for getModuleName) together and running them via the same shell instance. * <p> * As described in GWT issue 2486, GWTTestSuite is not a translatable class and in order to prevent reports of harmless * errors we moved our test suite class out of module's source path. * <p> * See http://code.google.com/p/google-web-toolkit/issues/detail?id=2486. * * @version $Id: 810df0f3efb1c6c5a9689aa58924559fd34d14fe $ */ public class PluginTestSuite extends GWTTestSuite { /** * @return the suite of all the client tests to be run */ public static Test suite() { TestSuite suite = new TestSuite("WYSIWYG Plugin API Unit Tests"); suite.addTestSuite(DefaultPluginFactoryManagerTest.class); suite.addTestSuite(DefaultPluginManagerTest.class); suite.addTestSuite(FocusWidgetUIExtensionTest.class); return suite; } }