PageRenderTime 26ms CodeModel.GetById 15ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 0ms

/interpreter/tags/at2dist041108/test/edu/vub/at/InterpreterTests.java

http://ambienttalk.googlecode.com/
Java | 99 lines | 59 code | 6 blank | 34 comment | 0 complexity | 3bbd1a766f102d29e9f63b1ce294de64 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
29package edu.vub.at;
30
31import junit.framework.Test;
32import junit.framework.TestSuite;
33
34import edu.vub.at.actors.natives.ActorTest;
35import edu.vub.at.actors.natives.SerializationTest;
36import edu.vub.at.objects.mirrors.CoercionTest;
37import edu.vub.at.objects.mirrors.InvocationTest;
38import edu.vub.at.objects.mirrors.MirageTest;
39import edu.vub.at.objects.mirrors.MirrorTest;
40import edu.vub.at.objects.mirrors.MirrorsOnNativesTest;
41import edu.vub.at.objects.mirrors.ReflectionTest;
42import edu.vub.at.objects.natives.CustomFieldsTest;
43import edu.vub.at.objects.natives.EscapeTest;
44import edu.vub.at.objects.natives.ExceptionHandlingTest;
45import edu.vub.at.objects.natives.LexicalRootTest;
46import edu.vub.at.objects.natives.NATNamespaceTest;
47import edu.vub.at.objects.natives.NATObjectClosureTest;
48import edu.vub.at.objects.natives.NATObjectTest;
49import edu.vub.at.objects.natives.PrimitivesTest;
50import edu.vub.at.objects.natives.TestFieldMap;
51import edu.vub.at.objects.natives.TypeTagTest;
52import edu.vub.at.objects.natives.UniformAccessTest;
53import edu.vub.at.objects.natives.grammar.TestEval;
54import edu.vub.at.objects.natives.grammar.TestFreeVariableCapturing;
55import edu.vub.at.objects.natives.grammar.TestParameterBinding;
56import edu.vub.at.objects.symbiosis.SymbiosisTest;
57
58/**
59 * @author tvcutsem
60 * 
61 * Runs all relevant test suites related to the interpreter (evaluation, reflection, natives)
62 */
63public class InterpreterTests {
64
65	public static void main(String[] args) {
66		junit.swingui.TestRunner.run(InterpreterTests.class);
67	}
68
69	public static Test suite() {
70		TestSuite suite = new TestSuite("All AT2 Interpreter-related tests.");
71		//$JUnit-BEGIN$
72		suite.addTestSuite(InvocationTest.class);
73		suite.addTestSuite(MirrorTest.class);
74		suite.addTestSuite(MirageTest.class);
75		suite.addTestSuite(ReflectionTest.class);
76		suite.addTestSuite(NATObjectClosureTest.class);
77		suite.addTestSuite(NATObjectTest.class);
78		suite.addTestSuite(TestFieldMap.class);
79		suite.addTestSuite(TestEval.class);
80		suite.addTestSuite(PrimitivesTest.class);
81		suite.addTestSuite(LexicalRootTest.class);
82		suite.addTestSuite(NATNamespaceTest.class);
83		suite.addTestSuite(CoercionTest.class);
84		suite.addTestSuite(ExceptionHandlingTest.class);
85		suite.addTestSuite(EscapeTest.class);
86		suite.addTestSuite(MirrorsOnNativesTest.class);
87		suite.addTestSuite(SymbiosisTest.class);
88		suite.addTestSuite(CustomFieldsTest.class);
89		suite.addTestSuite(TestParameterBinding.class);
90		suite.addTestSuite(TestFreeVariableCapturing.class);
91		suite.addTestSuite(SerializationTest.class);
92		suite.addTestSuite(TypeTagTest.class);
93		suite.addTestSuite(UniformAccessTest.class);
94		suite.addTestSuite(CoercionTest.class);
95		suite.addTestSuite(ActorTest.class);
96		//$JUnit-END$
97		return suite;
98	}
99}