KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > google > inject > AllTests


1 /**
2  * Copyright (C) 2006 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;
18
19 import com.google.inject.matcher.MatcherTest;
20 import com.google.inject.util.FinalizableReferenceQueueTest;
21 import com.google.inject.util.ReferenceCacheTest;
22 import com.google.inject.util.ReferenceMapTest;
23 import com.google.inject.util.ReferenceMapTestSuite;
24 import junit.framework.Test;
25 import junit.framework.TestSuite;
26
27 /**
28  * @author crazybob@google.com (Bob Lee)
29  */

30 public class AllTests {
31
32   public static Test suite() {
33     TestSuite suite = new TestSuite();
34
35     suite.addTestSuite(BoundProviderTest.class);
36     suite.addTestSuite(CircularDependencyTest.class);
37     suite.addTestSuite(ConstantConversionTest.class);
38     suite.addTestSuite(InjectorTest.class);
39     suite.addTestSuite(GenericInjectionTest.class);
40     suite.addTestSuite(ImplicitBindingTest.class);
41     suite.addTestSuite(KeyTest.class);
42     suite.addTestSuite(ProviderInjectionTest.class);
43     suite.addTestSuite(NotRequiredTest.class);
44     suite.addTestSuite(PreloadingTest.class);
45     suite.addTestSuite(ProxyFactoryTest.class);
46     suite.addTestSuite(ReflectionTest.class);
47     suite.addTestSuite(ScopesTest.class);
48     suite.addTestSuite(StaticInjectionTest.class);
49     suite.addTestSuite(SuperclassTest.class);
50     suite.addTestSuite(TypeLiteralTest.class);
51     suite.addTestSuite(BoundInstanceInjectionTest.class);
52     suite.addTestSuite(BindingAnnotationTest.class);
53
54     suite.addTestSuite(MatcherTest.class);
55
56     suite.addTestSuite(FinalizableReferenceQueueTest.class);
57     suite.addTestSuite(ReferenceCacheTest.class);
58     suite.addTestSuite(ReferenceMapTest.class);
59     suite.addTest(ReferenceMapTestSuite.suite());
60
61     suite.addTestSuite(IntegrationTest.class);
62
63     return suite;
64   }
65 }
66
Popular Tags