diff options
author | aclement <aclement> | 2006-08-22 08:20:36 +0000 |
---|---|---|
committer | aclement <aclement> | 2006-08-22 08:20:36 +0000 |
commit | 50f8ecc4339442c7abaf4d3a9995c1434b768ef2 (patch) | |
tree | 75ca9caf60a4a9bd592b162dbc79146188fe1fc6 /tests/model/pr120356 | |
parent | 8b393cc90d5d63171154713e5a73044a1a2fddaf (diff) | |
download | aspectj-50f8ecc4339442c7abaf4d3a9995c1434b768ef2.tar.gz aspectj-50f8ecc4339442c7abaf4d3a9995c1434b768ef2.zip |
refactored tests for 154552 - use new model testing structure
Diffstat (limited to 'tests/model/pr120356')
-rw-r--r-- | tests/model/pr120356/A.java | 15 | ||||
-rw-r--r-- | tests/model/pr120356/C.java | 11 |
2 files changed, 26 insertions, 0 deletions
diff --git a/tests/model/pr120356/A.java b/tests/model/pr120356/A.java new file mode 100644 index 000000000..628205610 --- /dev/null +++ b/tests/model/pr120356/A.java @@ -0,0 +1,15 @@ + +import org.aspectj.lang.annotation.Aspect; +import org.aspectj.lang.annotation.DeclareWarning; +import org.aspectj.lang.annotation.DeclareError; + +@Aspect +public class A { + + @DeclareWarning("execution(* C.warningMethod())") + static final String warning = "warning"; + + @DeclareError("execution(* C.badMethod())") + static final String error = "error"; + +} diff --git a/tests/model/pr120356/C.java b/tests/model/pr120356/C.java new file mode 100644 index 000000000..91ef6ab6c --- /dev/null +++ b/tests/model/pr120356/C.java @@ -0,0 +1,11 @@ + + +public class C { + + public void warningMethod() { + } + + public void badMethod() { + } + +} |