diff options
author | mwebster <mwebster> | 2006-08-16 14:53:26 +0000 |
---|---|---|
committer | mwebster <mwebster> | 2006-08-16 14:53:26 +0000 |
commit | c1c9215efa1c1e332859dd50c103e2a0021e15fe (patch) | |
tree | 404f9239eaaddba5c4601624321c9ab7e4ac45aa /tests | |
parent | 4a53ac4202af0d7ee667474c7a1a4820e32a98cf (diff) | |
download | aspectj-c1c9215efa1c1e332859dd50c103e2a0021e15fe.tar.gz aspectj-c1c9215efa1c1e332859dd50c103e2a0021e15fe.zip |
Bug 150487 "Tracing and Logging Framework" (trace everyting test)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/src/org/aspectj/systemtest/tracing/TracingTests.java | 4 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/tracing/tracing.xml | 12 | ||||
-rw-r--r-- | tests/tracing/Aspect.aj | 5 | ||||
-rw-r--r-- | tests/tracing/ant.xml | 13 |
4 files changed, 34 insertions, 0 deletions
diff --git a/tests/src/org/aspectj/systemtest/tracing/TracingTests.java b/tests/src/org/aspectj/systemtest/tracing/TracingTests.java index 1eb7924bf..eced86a4f 100644 --- a/tests/src/org/aspectj/systemtest/tracing/TracingTests.java +++ b/tests/src/org/aspectj/systemtest/tracing/TracingTests.java @@ -37,5 +37,9 @@ public class TracingTests extends org.aspectj.testing.XMLBasedAjcTestCase { public void testTraceMessages () { runTest("Trace messages"); } + + public void testTraceEverything () { + runTest("Trace everything"); + } } diff --git a/tests/src/org/aspectj/systemtest/tracing/tracing.xml b/tests/src/org/aspectj/systemtest/tracing/tracing.xml index a9f64bd69..6a5d4881e 100644 --- a/tests/src/org/aspectj/systemtest/tracing/tracing.xml +++ b/tests/src/org/aspectj/systemtest/tracing/tracing.xml @@ -57,4 +57,16 @@ </stderr> </ant> </ajc-test> + + <ajc-test dir="tracing" title="Trace everything" keywords="tracing"> + <compile + files="HelloWorld.java" + /> + <compile files="Aspect.aj" options="-outxml"/> + <ant file="ant.xml" target="Trace everything" verbose="true"> + <stdout> + <line text="Hello World!"/> + </stdout> + </ant> + </ajc-test> </suite> diff --git a/tests/tracing/Aspect.aj b/tests/tracing/Aspect.aj new file mode 100644 index 000000000..3ecbe827e --- /dev/null +++ b/tests/tracing/Aspect.aj @@ -0,0 +1,5 @@ +public aspect Aspect { + before () : within(HelloWorld) { + System.err.println(thisJoinPoint); + } +}
\ No newline at end of file diff --git a/tests/tracing/ant.xml b/tests/tracing/ant.xml index b0b7a9e17..064eecda0 100644 --- a/tests/tracing/ant.xml +++ b/tests/tracing/ant.xml @@ -37,4 +37,17 @@ </java> </target> + <target name="Trace everything"> + <java fork="yes" classname="HelloWorld" failonerror="yes"> + <classpath refid="aj.path"/> + <jvmarg value="-Dorg.aspectj.tracing.enabled=true"/> + <jvmarg value="-Dorg.aspectj.tracing.factory=default"/> + <jvmarg value="-Dorg.aspectj.tracing.messages=true"/> +<!-- <jvmarg value="-verbose:class"/>--> + <!-- use META-INF/aop.xml style --> + <jvmarg value="-javaagent:${aj.root}/lib/test/loadtime5.jar"/> +<!-- <jvmarg line="${jdwp}"/>--> + </java> + </target> + </project> |