/interpreter/tags/reactive-pattern-matching/test/edu/vub/at/InterpreterTests.java

http://ambienttalk.googlecode.com/ · Java · 94 lines · 55 code · 5 blank · 34 comment · 0 complexity · efba27ec0543b1e84c61b00444a3f381 MD5 · raw file

  1. /**
  2. * AmbientTalk/2 Project
  3. * OBJUnit.java created on Aug 22, 2006 at 11:32:30 AM
  4. * (c) Programming Technology Lab, 2006 - 2007
  5. * Authors: Tom Van Cutsem & Stijn Mostinckx
  6. *
  7. * Permission is hereby granted, free of charge, to any person
  8. * obtaining a copy of this software and associated documentation
  9. * files (the "Software"), to deal in the Software without
  10. * restriction, including without limitation the rights to use,
  11. * copy, modify, merge, publish, distribute, sublicense, and/or
  12. * sell copies of the Software, and to permit persons to whom the
  13. * Software is furnished to do so, subject to the following
  14. * conditions:
  15. *
  16. * The above copyright notice and this permission notice shall be
  17. * included in all copies or substantial portions of the Software.
  18. *
  19. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  20. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  21. * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  22. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  23. * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  24. * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  25. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  26. * OTHER DEALINGS IN THE SOFTWARE.
  27. */
  28. package edu.vub.at;
  29. import junit.framework.Test;
  30. import junit.framework.TestSuite;
  31. import edu.vub.at.actors.natives.SerializationTest;
  32. import edu.vub.at.objects.mirrors.CoercionTest;
  33. import edu.vub.at.objects.mirrors.InvocationTest;
  34. import edu.vub.at.objects.mirrors.MirageTest;
  35. import edu.vub.at.objects.mirrors.MirrorTest;
  36. import edu.vub.at.objects.mirrors.MirrorsOnNativesTest;
  37. import edu.vub.at.objects.mirrors.ReflectionTest;
  38. import edu.vub.at.objects.natives.CustomFieldsTest;
  39. import edu.vub.at.objects.natives.EscapeTest;
  40. import edu.vub.at.objects.natives.ExceptionHandlingTest;
  41. import edu.vub.at.objects.natives.LexicalRootTest;
  42. import edu.vub.at.objects.natives.NATNamespaceTest;
  43. import edu.vub.at.objects.natives.NATObjectClosureTest;
  44. import edu.vub.at.objects.natives.NATObjectTest;
  45. import edu.vub.at.objects.natives.PrimitivesTest;
  46. import edu.vub.at.objects.natives.TestFieldMap;
  47. import edu.vub.at.objects.natives.TypeTagTest;
  48. import edu.vub.at.objects.natives.UniformAccessTest;
  49. import edu.vub.at.objects.natives.grammar.TestEval;
  50. import edu.vub.at.objects.natives.grammar.TestParameterBinding;
  51. import edu.vub.at.objects.symbiosis.SymbiosisTest;
  52. /**
  53. * @author tvcutsem
  54. *
  55. * Runs all relevant test suites related to the interpreter (evaluation, reflection, natives)
  56. */
  57. public class InterpreterTests {
  58. public static void main(String[] args) {
  59. junit.swingui.TestRunner.run(InterpreterTests.class);
  60. }
  61. public static Test suite() {
  62. TestSuite suite = new TestSuite("All AT2 Interpreter-related tests.");
  63. //$JUnit-BEGIN$
  64. suite.addTestSuite(InvocationTest.class);
  65. suite.addTestSuite(MirrorTest.class);
  66. suite.addTestSuite(MirageTest.class);
  67. suite.addTestSuite(ReflectionTest.class);
  68. suite.addTestSuite(NATObjectClosureTest.class);
  69. suite.addTestSuite(NATObjectTest.class);
  70. suite.addTestSuite(TestFieldMap.class);
  71. suite.addTestSuite(TestEval.class);
  72. suite.addTestSuite(PrimitivesTest.class);
  73. suite.addTestSuite(LexicalRootTest.class);
  74. suite.addTestSuite(NATNamespaceTest.class);
  75. suite.addTestSuite(CoercionTest.class);
  76. suite.addTestSuite(ExceptionHandlingTest.class);
  77. suite.addTestSuite(EscapeTest.class);
  78. suite.addTestSuite(MirrorsOnNativesTest.class);
  79. suite.addTestSuite(SymbiosisTest.class);
  80. suite.addTestSuite(CustomFieldsTest.class);
  81. suite.addTestSuite(TestParameterBinding.class);
  82. suite.addTestSuite(SerializationTest.class);
  83. suite.addTestSuite(TypeTagTest.class);
  84. suite.addTestSuite(UniformAccessTest.class);
  85. suite.addTestSuite(CoercionTest.class);
  86. //$JUnit-END$
  87. return suite;
  88. }
  89. }