PageRenderTime 35ms CodeModel.GetById 14ms app.highlight 15ms RepoModel.GetById 1ms app.codeStats 0ms

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

http://ambienttalk.googlecode.com/
Java | 101 lines | 61 code | 6 blank | 34 comment | 0 complexity | ca0129ae33da6bd268975415c735db87 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;
 57import edu.vub.at.trace.TraceTest;
 58
 59/**
 60 * @author tvcutsem
 61 * 
 62 * Runs all relevant test suites related to the interpreter (evaluation, reflection, natives)
 63 */
 64public class InterpreterTests {
 65
 66	public static void main(String[] args) {
 67		junit.swingui.TestRunner.run(InterpreterTests.class);
 68	}
 69
 70	public static Test suite() {
 71		TestSuite suite = new TestSuite("All AT2 Interpreter-related tests.");
 72		//$JUnit-BEGIN$
 73		suite.addTestSuite(InvocationTest.class);
 74		suite.addTestSuite(MirrorTest.class);
 75		suite.addTestSuite(MirageTest.class);
 76		suite.addTestSuite(ReflectionTest.class);
 77		suite.addTestSuite(NATObjectClosureTest.class);
 78		suite.addTestSuite(NATObjectTest.class);
 79		suite.addTestSuite(TestFieldMap.class);
 80		suite.addTestSuite(TestEval.class);
 81		suite.addTestSuite(PrimitivesTest.class);
 82		suite.addTestSuite(LexicalRootTest.class);
 83		suite.addTestSuite(NATNamespaceTest.class);
 84		suite.addTestSuite(CoercionTest.class);
 85		suite.addTestSuite(ExceptionHandlingTest.class);
 86		suite.addTestSuite(EscapeTest.class);
 87		suite.addTestSuite(MirrorsOnNativesTest.class);
 88		suite.addTestSuite(SymbiosisTest.class);
 89		suite.addTestSuite(CustomFieldsTest.class);
 90		suite.addTestSuite(TestParameterBinding.class);
 91		suite.addTestSuite(TestFreeVariableCapturing.class);
 92		suite.addTestSuite(SerializationTest.class);
 93		suite.addTestSuite(TypeTagTest.class);
 94		suite.addTestSuite(UniformAccessTest.class);
 95		suite.addTestSuite(CoercionTest.class);
 96		suite.addTestSuite(ActorTest.class);
 97		suite.addTestSuite(TraceTest.class);
 98		//$JUnit-END$
 99		return suite;
100	}
101}