diff options
author | acolyer <acolyer> | 2005-08-19 08:01:02 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2005-08-19 08:01:02 +0000 |
commit | b6534a87a3a6dc094bf2c704548f49094f250dc4 (patch) | |
tree | 1edcec5f3caf355671696c67baad2bdc287f7c63 /tests | |
parent | cfe61d6ce06def3e24d1c62e047cd029c6f1f428 (diff) | |
download | aspectj-b6534a87a3a6dc094bf2c704548f49094f250dc4.tar.gz aspectj-b6534a87a3a6dc094bf2c704548f49094f250dc4.zip |
collection of really basic tests to use when bringing up a new version of the JDT compiler (these are not linked into the main test suite). Fortunately I didn't need too many in here this time round...
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bringup/EmptyAspect.aj | 1 | ||||
-rw-r--r-- | tests/bringup/EmptyClass.java | 1 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/bringup/BringUpTests.java | 39 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/bringup/bringup.xml | 14 |
4 files changed, 55 insertions, 0 deletions
diff --git a/tests/bringup/EmptyAspect.aj b/tests/bringup/EmptyAspect.aj new file mode 100644 index 000000000..683bc8bd1 --- /dev/null +++ b/tests/bringup/EmptyAspect.aj @@ -0,0 +1 @@ +public aspect EmptyAspect {}
\ No newline at end of file diff --git a/tests/bringup/EmptyClass.java b/tests/bringup/EmptyClass.java new file mode 100644 index 000000000..36b60bf51 --- /dev/null +++ b/tests/bringup/EmptyClass.java @@ -0,0 +1 @@ +public class EmptyClass {}
\ No newline at end of file diff --git a/tests/src/org/aspectj/systemtest/bringup/BringUpTests.java b/tests/src/org/aspectj/systemtest/bringup/BringUpTests.java new file mode 100644 index 000000000..50e49d687 --- /dev/null +++ b/tests/src/org/aspectj/systemtest/bringup/BringUpTests.java @@ -0,0 +1,39 @@ +/******************************************************************************* + * Copyright (c) 2004 IBM + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Common Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/cpl-v10.html + * + * Contributors: + * Andy Clement - initial API and implementation + *******************************************************************************/ +package org.aspectj.systemtest.bringup; + +import java.io.File; + +import junit.framework.Test; + +import org.aspectj.testing.XMLBasedAjcTestCase; + +/** + * These are tests that will run on Java 1.4 and use the old harness format for test specification. + */ +public class BringUpTests extends org.aspectj.testing.XMLBasedAjcTestCase { + + public static Test suite() { + return XMLBasedAjcTestCase.loadSuite(BringUpTests.class); + } + + protected File getSpecFile() { + return new File("../tests/src/org/aspectj/systemtest/bringup/bringup.xml"); + } + + public void testEmptyClass() { + runTest("empty class"); + } + + public void testEmptyAspect() { + runTest("empty aspect"); + } +}
\ No newline at end of file diff --git a/tests/src/org/aspectj/systemtest/bringup/bringup.xml b/tests/src/org/aspectj/systemtest/bringup/bringup.xml new file mode 100644 index 000000000..6009c9484 --- /dev/null +++ b/tests/src/org/aspectj/systemtest/bringup/bringup.xml @@ -0,0 +1,14 @@ +<!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]> + +<!-- AspectJ Bring-up Tests --> +<suite> + + <ajc-test title="empty class" dir="bringup"> + <compile files="EmptyClass.java"></compile> + </ajc-test> + + <ajc-test title="empty aspect" dir="bringup"> + <compile files="EmptyAspect.aj"></compile> + </ajc-test> + +</suite>
\ No newline at end of file |