diff options
author | wisberg <wisberg> | 2003-01-06 23:09:44 +0000 |
---|---|---|
committer | wisberg <wisberg> | 2003-01-06 23:09:44 +0000 |
commit | fa63eb539504e91b3d070d5cf723346b9a86d0aa (patch) | |
tree | 80390181d48071851226277fed93460c0cc5109c /tests/harness/classpathTest/AspectMain.java | |
parent | 47b257cb438cc74cf708d7edbb4beb11405402f6 (diff) | |
download | aspectj-fa63eb539504e91b3d070d5cf723346b9a86d0aa.tar.gz aspectj-fa63eb539504e91b3d070d5cf723346b9a86d0aa.zip |
two harness test cases, for classpath (jar and dir)
and aspectpath.
Binaries are checked in, as are binary sources
and a build script.
Test specifications are in tests/ajcHarnessTests.xml.
(also checked in) with the build script
Diffstat (limited to 'tests/harness/classpathTest/AspectMain.java')
-rw-r--r-- | tests/harness/classpathTest/AspectMain.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/harness/classpathTest/AspectMain.java b/tests/harness/classpathTest/AspectMain.java new file mode 100644 index 000000000..cc7576a15 --- /dev/null +++ b/tests/harness/classpathTest/AspectMain.java @@ -0,0 +1,15 @@ + +import org.aspectj.testing.Tester; +import jar.required.Global; +import classfile.required.ClassFile; + +public class AspectMain { + public static void main (String[] args) { + Tester.expectEvent("aspect"); + Tester.check(ClassFile.isTrue(), "not ClassFile.isTrue()?"); + Tester.check(Global.isTrue(), "not Global.isTrue()?"); + // aspect advises this invocation, adds "aspect" event + new Runnable() { public void run(){}}.run(); + Tester.checkAllEvents(); + } +} |