From 773ad112441790f1b85aa5560994fc9cbdd27b1e Mon Sep 17 00:00:00 2001 From: wisberg Date: Sat, 21 May 2005 22:23:08 +0000 Subject: interactive guard to preserve automated runnability of *Test.java --- .../org/aspectj/tools/ajbrowser/InteractiveBrowserTest.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'ajbrowser/testsrc/org/aspectj') diff --git a/ajbrowser/testsrc/org/aspectj/tools/ajbrowser/InteractiveBrowserTest.java b/ajbrowser/testsrc/org/aspectj/tools/ajbrowser/InteractiveBrowserTest.java index 021533ed1..e2d454a1e 100644 --- a/ajbrowser/testsrc/org/aspectj/tools/ajbrowser/InteractiveBrowserTest.java +++ b/ajbrowser/testsrc/org/aspectj/tools/ajbrowser/InteractiveBrowserTest.java @@ -23,10 +23,13 @@ import org.aspectj.bridge.IMessage; import org.aspectj.ajde.*; /** + * Define system property "ajbrowser.interactive" to run. * @author Mik Kersten */ public class InteractiveBrowserTest extends TestCase { - + static boolean interactive() { + return (null != System.getProperty("ajbrowser.interactive")); + } public InteractiveBrowserTest(String name) { super(name); } @@ -44,6 +47,9 @@ public class InteractiveBrowserTest extends TestCase { } public void testAddProjectTask() { + if (!interactive()) { + return; + } BrowserManager.getDefault().init(new String[]{}, true); Ajde.getDefault().getTaskListManager().addProjectTask( "project-level task", @@ -55,6 +61,9 @@ public class InteractiveBrowserTest extends TestCase { } public void testAddSourceLineTasks() { + if (!interactive()) { + return; + } BrowserManager.getDefault().init(new String[]{}, true); ISourceLocation dummyLocation = new SourceLocation(new File(""), 0, 0); -- cgit v1.2.3