PageRenderTime 50ms CodeModel.GetById 37ms app.highlight 8ms RepoModel.GetById 2ms app.codeStats 0ms

/interpreter/tags/at2-build060407/test/edu/vub/at/InterpreterTests.java

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