1 /*
2  * Copyright (C) 2008 Google Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package com.google.inject.servlet;
18 
19 import junit.framework.Test;
20 import junit.framework.TestSuite;
21 
22 /** @author dhanji@gmail.com (Dhanji R. Prasanna) */
23 public class AllTests {
24 
suite()25   public static Test suite() {
26     TestSuite suite = new TestSuite();
27 
28     // Filter tests.
29     suite.addTestSuite(EdslTest.class);
30     suite.addTestSuite(FilterDefinitionTest.class);
31     suite.addTestSuite(FilterDispatchIntegrationTest.class);
32     suite.addTestSuite(FilterPipelineTest.class);
33 
34     // Servlet + integration tests.
35     suite.addTestSuite(ServletModuleTest.class);
36     suite.addTestSuite(ServletTest.class);
37     suite.addTestSuite(ServletDefinitionTest.class);
38     suite.addTestSuite(ServletDefinitionPathsTest.class);
39     suite.addTestSuite(ServletPipelineRequestDispatcherTest.class);
40     suite.addTestSuite(ServletDispatchIntegrationTest.class);
41     suite.addTestSuite(InvalidScopeBindingTest.class);
42     suite.addTestSuite(ContinuingHttpServletRequestTest.class);
43 
44     // Varargs URL mapping tests.
45     suite.addTestSuite(VarargsFilterDispatchIntegrationTest.class);
46     suite.addTestSuite(VarargsServletDispatchIntegrationTest.class);
47 
48     // Multiple modules tests.
49     suite.addTestSuite(MultiModuleDispatchIntegrationTest.class);
50 
51     // Extension SPI tests.
52     suite.addTestSuite(ExtensionSpiTest.class);
53 
54     suite.addTestSuite(UriPatternTypeTest.class);
55 
56     return suite;
57   }
58 }
59