/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. package kilim.test;
  7. import junit.framework.Test;
  8. import junit.framework.TestSuite;
  9. public class AllWoven extends TestSuite {
  10. private static Class lambdaClass;
  11. private static boolean java8;
  12. static {
  13. try {
  14. lambdaClass = AllWoven.class.getClassLoader().loadClass("kilim.test.TestLambda");
  15. java8 = true;
  16. }
  17. catch (ClassNotFoundException ex) {}
  18. }
  19. public static Test suite() {
  20. TestSuite ret = new AllWoven();
  21. ret.addTestSuite(TestPrefThread.class);
  22. ret.addTestSuite(TestYield.class);
  23. ret.addTestSuite(TestInterface.class);
  24. ret.addTestSuite(TestAbstractExtends.class);
  25. if (java8)
  26. ret.addTestSuite(lambdaClass);
  27. ret.addTestSuite(TestYieldExceptions.class);
  28. ret.addTestSuite(TestYieldJSR.class);
  29. ret.addTestSuite(TestMailbox.class);
  30. ret.addTestSuite(TestLock.class);
  31. ret.addTestSuite(TestGenerics.class);
  32. ret.addTestSuite(TestIO.class);
  33. ret.addTestSuite(TestHTTP.class);
  34. return ret;
  35. }
  36. }