summaryrefslogtreecommitdiffstats
path: root/ajbrowser/testsrc
diff options
context:
space:
mode:
authormkersten <mkersten>2003-08-07 08:10:01 +0000
committermkersten <mkersten>2003-08-07 08:10:01 +0000
commitacdf688ccc4d8b376141b2c8e28bc5d7b7612e90 (patch)
tree45af0dc8461e8cb89504bb9bc43fa911c16df1f5 /ajbrowser/testsrc
parent7b6fd547894bfbfbebc0c679be931a235a468512 (diff)
downloadaspectj-acdf688ccc4d8b376141b2c8e28bc5d7b7612e90.tar.gz
aspectj-acdf688ccc4d8b376141b2c8e28bc5d7b7612e90.zip
Fixed
- 40257: parsing of "../" paths in LST files is broken Added interactive test for checking compiler task list messages (via browser).
Diffstat (limited to 'ajbrowser/testsrc')
-rw-r--r--ajbrowser/testsrc/org/aspectj/tools/ajbrowser/InteractiveBrowserTest.java (renamed from ajbrowser/testsrc/org/aspectj/tools/ajbrowser/BrowserManagerTest.java)15
1 files changed, 10 insertions, 5 deletions
diff --git a/ajbrowser/testsrc/org/aspectj/tools/ajbrowser/BrowserManagerTest.java b/ajbrowser/testsrc/org/aspectj/tools/ajbrowser/InteractiveBrowserTest.java
index 4c14046b2..021533ed1 100644
--- a/ajbrowser/testsrc/org/aspectj/tools/ajbrowser/BrowserManagerTest.java
+++ b/ajbrowser/testsrc/org/aspectj/tools/ajbrowser/InteractiveBrowserTest.java
@@ -25,15 +25,15 @@ import org.aspectj.ajde.*;
/**
* @author Mik Kersten
*/
-public class BrowserManagerTest extends TestCase {
+public class InteractiveBrowserTest extends TestCase {
- public BrowserManagerTest(String name) {
+ public InteractiveBrowserTest(String name) {
super(name);
}
public static TestSuite suite() {
TestSuite result = new TestSuite();
- result.addTestSuite(BrowserManagerTest.class);
+ result.addTestSuite(InteractiveBrowserTest.class);
return result;
}
@@ -49,16 +49,19 @@ public class BrowserManagerTest extends TestCase {
"project-level task",
IMessage.ERROR);
+ BrowserManager.getDefault().showMessages();
+
assertTrue("confirmation result", verifySuccess("Project task is visible."));
}
public void testAddSourceLineTasks() {
BrowserManager.getDefault().init(new String[]{}, true);
- ISourceLocation dummyLocation = new SourceLocation(new File("<file>"), -1, -1);
+ ISourceLocation dummyLocation = new SourceLocation(new File("<file>"), 0, 0);
+
Ajde.getDefault().getTaskListManager().addSourcelineTask(
"error task",
dummyLocation,
- IMessage.ERROR);
+ IMessage.ERROR);
Ajde.getDefault().getTaskListManager().addSourcelineTask(
"warning task",
@@ -69,6 +72,8 @@ public class BrowserManagerTest extends TestCase {
"info task",
dummyLocation,
IMessage.INFO);
+
+ BrowserManager.getDefault().showMessages();
assertTrue("confirmation result", verifySuccess("3 kinds of sourceline tasks are visible."));
}