Class | Line # | Actions | |||||
---|---|---|---|---|---|---|---|
PluginTestSuite | 44 | 5 | 0% | 1 | 0 |
1 | /* | |
2 | * See the NOTICE file distributed with this work for additional | |
3 | * information regarding copyright ownership. | |
4 | * | |
5 | * This is free software; you can redistribute it and/or modify it | |
6 | * under the terms of the GNU Lesser General Public License as | |
7 | * published by the Free Software Foundation; either version 2.1 of | |
8 | * the License, or (at your option) any later version. | |
9 | * | |
10 | * This software is distributed in the hope that it will be useful, | |
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
13 | * Lesser General Public License for more details. | |
14 | * | |
15 | * You should have received a copy of the GNU Lesser General Public | |
16 | * License along with this software; if not, write to the Free | |
17 | * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | |
18 | * 02110-1301 USA, or see the FSF site: http://www.fsf.org. | |
19 | */ | |
20 | package org.xwiki.gwt.wysiwyg; | |
21 | ||
22 | import junit.framework.Test; | |
23 | import junit.framework.TestSuite; | |
24 | ||
25 | import org.xwiki.gwt.wysiwyg.client.plugin.internal.DefaultPluginFactoryManagerTest; | |
26 | import org.xwiki.gwt.wysiwyg.client.plugin.internal.DefaultPluginManagerTest; | |
27 | import org.xwiki.gwt.wysiwyg.client.plugin.internal.FocusWidgetUIExtensionTest; | |
28 | ||
29 | import com.google.gwt.junit.tools.GWTTestSuite; | |
30 | ||
31 | /** | |
32 | * All the client tests to be run. We're using a test suite because it decreases the overall testing time. GWTTestCase | |
33 | * derived tests are slow. This is because the JUnitShell has to load the module for each test (create the shell, hook | |
34 | * into it, etc). GWTTestSuite mitigates this by grouping all the tests that are for the same module (those that return | |
35 | * the same value for getModuleName) together and running them via the same shell instance. | |
36 | * <p> | |
37 | * As described in GWT issue 2486, GWTTestSuite is not a translatable class and in order to prevent reports of harmless | |
38 | * errors we moved our test suite class out of module's source path. | |
39 | * <p> | |
40 | * See http://code.google.com/p/google-web-toolkit/issues/detail?id=2486. | |
41 | * | |
42 | * @version $Id: 810df0f3efb1c6c5a9689aa58924559fd34d14fe $ | |
43 | */ | |
44 | public class PluginTestSuite extends GWTTestSuite | |
45 | { | |
46 | /** | |
47 | * @return the suite of all the client tests to be run | |
48 | */ | |
49 | 1 | ![]() |
50 | { | |
51 | 1 | TestSuite suite = new TestSuite("WYSIWYG Plugin API Unit Tests"); |
52 | ||
53 | 1 | suite.addTestSuite(DefaultPluginFactoryManagerTest.class); |
54 | 1 | suite.addTestSuite(DefaultPluginManagerTest.class); |
55 | 1 | suite.addTestSuite(FocusWidgetUIExtensionTest.class); |
56 | ||
57 | 1 | return suite; |
58 | } | |
59 | } |