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 /** 23 * @author dhanji@gmail.com (Dhanji R. Prasanna) 24 */ 25 public class AllTests { 26 suite()27 public static Test suite() { 28 TestSuite suite = new TestSuite(); 29 30 // Filter tests. 31 suite.addTestSuite(EdslTest.class); 32 suite.addTestSuite(FilterDefinitionTest.class); 33 suite.addTestSuite(FilterDispatchIntegrationTest.class); 34 suite.addTestSuite(FilterPipelineTest.class); 35 36 // Servlet + integration tests. 37 suite.addTestSuite(ServletModuleTest.class); 38 suite.addTestSuite(ServletTest.class); 39 suite.addTestSuite(ServletDefinitionTest.class); 40 suite.addTestSuite(ServletDefinitionPathsTest.class); 41 suite.addTestSuite(ServletPipelineRequestDispatcherTest.class); 42 suite.addTestSuite(ServletDispatchIntegrationTest.class); 43 suite.addTestSuite(InvalidScopeBindingTest.class); 44 suite.addTestSuite(ContinuingHttpServletRequestTest.class); 45 46 // Varargs URL mapping tests. 47 suite.addTestSuite(VarargsFilterDispatchIntegrationTest.class); 48 suite.addTestSuite(VarargsServletDispatchIntegrationTest.class); 49 50 // Multiple modules tests. 51 suite.addTestSuite(MultiModuleDispatchIntegrationTest.class); 52 53 // Extension SPI tests. 54 suite.addTestSuite(ExtensionSpiTest.class); 55 56 suite.addTestSuite(UriPatternTypeTest.class); 57 58 return suite; 59 } 60 } 61