PageRenderTime 23ms CodeModel.GetById 15ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/test/kilim/test/AllWoven.java

http://github.com/kilim/kilim
Java | 40 lines | 31 code | 4 blank | 5 comment | 1 complexity | 8ba581ff56f5d4721dcdc96fafb2fc17 MD5 | raw file
 1/* Copyright (c) 2006, Sriram Srinivasan
 2 *
 3 * You may distribute this software under the terms of the license 
 4 * specified in the file "License"
 5 */
 6
 7package kilim.test;
 8
 9import junit.framework.Test;
10import junit.framework.TestSuite;
11
12public class AllWoven extends TestSuite {
13    private static Class lambdaClass;
14    private static boolean java8;
15    static {
16        try {
17            lambdaClass = AllWoven.class.getClassLoader().loadClass("kilim.test.TestLambda");
18            java8 = true;
19        }
20        catch (ClassNotFoundException ex) {}
21    }
22
23    public static Test suite() {
24        TestSuite ret = new AllWoven();
25        ret.addTestSuite(TestPrefThread.class);
26        ret.addTestSuite(TestYield.class);
27        ret.addTestSuite(TestInterface.class);
28        ret.addTestSuite(TestAbstractExtends.class);
29        if (java8)
30            ret.addTestSuite(lambdaClass);
31        ret.addTestSuite(TestYieldExceptions.class);
32        ret.addTestSuite(TestYieldJSR.class);
33        ret.addTestSuite(TestMailbox.class);
34        ret.addTestSuite(TestLock.class);
35        ret.addTestSuite(TestGenerics.class);
36        ret.addTestSuite(TestIO.class);
37        ret.addTestSuite(TestHTTP.class);
38        return ret;
39    }
40}