From b36560b79b17199ce35c09e548396b34694a97a9 Mon Sep 17 00:00:00 2001 From: mkersten Date: Tue, 22 Jul 2003 16:31:50 +0000 Subject: [PATCH] Added coverge to LST file tests. --- ajde/testdata/LstBuildConfigManagerTest/invalid-entry.lst | 1 + .../examples/declare-warning/apackage/InitCatcher.java | 5 ++++- .../examples/declare-warning/apackage/SomeClass.java | 3 +++ 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 ajde/testdata/LstBuildConfigManagerTest/invalid-entry.lst diff --git a/ajde/testdata/LstBuildConfigManagerTest/invalid-entry.lst b/ajde/testdata/LstBuildConfigManagerTest/invalid-entry.lst new file mode 100644 index 000000000..152ca9401 --- /dev/null +++ b/ajde/testdata/LstBuildConfigManagerTest/invalid-entry.lst @@ -0,0 +1 @@ +aaa.bbb diff --git a/ajde/testdata/examples/declare-warning/apackage/InitCatcher.java b/ajde/testdata/examples/declare-warning/apackage/InitCatcher.java index ac34d3c0c..efa19bba6 100644 --- a/ajde/testdata/examples/declare-warning/apackage/InitCatcher.java +++ b/ajde/testdata/examples/declare-warning/apackage/InitCatcher.java @@ -3,6 +3,9 @@ package apackage; public aspect InitCatcher { declare warning: call(* *.init(..)) : - "Please don't call init methods"; //$NON-NLS-1$ + "Please don't call init methods"; + + declare warning: set(* SomeClass.*) : + "Please don't call setters"; } \ No newline at end of file diff --git a/ajde/testdata/examples/declare-warning/apackage/SomeClass.java b/ajde/testdata/examples/declare-warning/apackage/SomeClass.java index eff26d5c8..bb34db820 100644 --- a/ajde/testdata/examples/declare-warning/apackage/SomeClass.java +++ b/ajde/testdata/examples/declare-warning/apackage/SomeClass.java @@ -2,8 +2,11 @@ package apackage; public class SomeClass { + int x; + public SomeClass() { init(); // line 6 + x = 3; } public void init() { -- 2.39.5