PageRenderTime 45ms CodeModel.GetById 36ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 0ms

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