diff options
author | wisberg <wisberg> | 2005-05-21 22:23:08 +0000 |
---|---|---|
committer | wisberg <wisberg> | 2005-05-21 22:23:08 +0000 |
commit | 773ad112441790f1b85aa5560994fc9cbdd27b1e (patch) | |
tree | 3dfb8fe1d37f61e80fa1fb82ddcb092f9a35e7b6 | |
parent | 35adc8d1bf2dcd11ec51b2c71d22544ae8ed1076 (diff) | |
download | aspectj-773ad112441790f1b85aa5560994fc9cbdd27b1e.tar.gz aspectj-773ad112441790f1b85aa5560994fc9cbdd27b1e.zip |
interactive guard to preserve automated runnability of *Test.java
-rw-r--r-- | ajbrowser/testsrc/org/aspectj/tools/ajbrowser/InteractiveBrowserTest.java | 11 |
1 files changed, 10 insertions, 1 deletions
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("<file>"), 0, 0); |