summaryrefslogtreecommitdiffstats
path: root/weaver/testsrc
diff options
context:
space:
mode:
authormwebster <mwebster>2006-08-16 14:52:44 +0000
committermwebster <mwebster>2006-08-16 14:52:44 +0000
commit4a53ac4202af0d7ee667474c7a1a4820e32a98cf (patch)
treeb7d36991acb37701624dcd5edf20d19ea5e90a92 /weaver/testsrc
parentbf17ebb5bbb02bb0279122b965d9af713fd59005 (diff)
downloadaspectj-4a53ac4202af0d7ee667474c7a1a4820e32a98cf.tar.gz
aspectj-4a53ac4202af0d7ee667474c7a1a4820e32a98cf.zip
Bug 150487 "Tracing and Logging Framework" (improve formatting for arrays and Collections)
Diffstat (limited to 'weaver/testsrc')
-rw-r--r--weaver/testsrc/org/aspectj/weaver/AbstractTraceTest.java27
1 files changed, 26 insertions, 1 deletions
diff --git a/weaver/testsrc/org/aspectj/weaver/AbstractTraceTest.java b/weaver/testsrc/org/aspectj/weaver/AbstractTraceTest.java
index abdff5fcb..b28323a91 100644
--- a/weaver/testsrc/org/aspectj/weaver/AbstractTraceTest.java
+++ b/weaver/testsrc/org/aspectj/weaver/AbstractTraceTest.java
@@ -10,12 +10,15 @@
*******************************************************************************/
package org.aspectj.weaver;
+import java.util.ArrayList;
+
import junit.framework.TestCase;
import org.aspectj.weaver.tools.AbstractTrace;
import org.aspectj.weaver.tools.DefaultTrace;
+import org.aspectj.weaver.tools.Traceable;
-public class AbstractTraceTest extends TestCase {
+public abstract class AbstractTraceTest extends TestCase {
protected AbstractTrace trace;
@@ -28,6 +31,28 @@ public class AbstractTraceTest extends TestCase {
trace.enter("testEnterWithThisAndArgs",this,new Object[] { "arg1", "arg2" });
}
+ public void testEnterWithThisAndArray() {
+ Object arg1 = new String[] { "s1", "s2" };
+ Object arg2 = new char[] { 'a', 'b', 'c' };
+ trace.enter("testEnterWithThisAndArgs",this,new Object[] { arg1, arg2 });
+ }
+
+ public void testEnterWithThisAndCollection() {
+ Object arg1 = new ArrayList();
+ trace.enter("testEnterWithThisAndArgs",this,new Object[] { arg1 });
+ }
+
+ public void testEnterWithThisAndTraceable () {
+ Object arg1 = new Traceable() {
+
+ public String toTraceString() {
+ return "Traceable";
+ }
+
+ };
+ trace.enter("testEnterWithThisAndArgs",this,new Object[] { arg1 });
+ }
+
public void testEnterWithThis() {
trace.enter("testEnterWithThis",this);
}