From: wisberg Date: Thu, 28 Aug 2003 18:27:50 +0000 (+0000) Subject: serializing tests. Some depended on others for builds, but test run order is not... X-Git-Tag: V1_1_1~48 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=31c52df57dbc34ebea91712d236a096f67153201;p=aspectj.git serializing tests. Some depended on others for builds, but test run order is not guaranteed. --- diff --git a/ajde/testsrc/org/aspectj/ajde/internal/AspectJBuildManagerTest.java b/ajde/testsrc/org/aspectj/ajde/internal/AspectJBuildManagerTest.java index 144a2fb56..f94ff660f 100644 --- a/ajde/testsrc/org/aspectj/ajde/internal/AspectJBuildManagerTest.java +++ b/ajde/testsrc/org/aspectj/ajde/internal/AspectJBuildManagerTest.java @@ -32,36 +32,22 @@ public class AspectJBuildManagerTest extends AjdeTestCase { return result; } - public void testInit() { + public void testSequence() { assertTrue("initialization", ideManager != null); - } - - public void testCompileNonExistingConfig() { - assertTrue("compile of non-existing build config success", !testerBuildListener.getBuildSucceeded()); - } - - public void testCompileEmptyConfig() { + assertTrue("compile of non-existing build config success", !testerBuildListener.getBuildSucceeded()); // XXX should fail? empty configs fail b/c no sources specified - doSynchronousBuild("empty.lst"); - assertTrue("compile of empty build config", testerBuildListener.getBuildSucceeded()); - } - - public void testCompileSuccess() { - doSynchronousBuild("../examples/figures-coverage/all.lst"); - assertTrue("compile success", testerBuildListener.getBuildSucceeded()); - } - - public void testCompileOutput() { + doSynchronousBuild("empty.lst"); + assertTrue("compile of empty build config", testerBuildListener.getBuildSucceeded()); + doSynchronousBuild("../examples/figures-coverage/all.lst"); + assertTrue("compile success", testerBuildListener.getBuildSucceeded()); File file = new File(Ajde.getDefault().getProjectProperties().getOutputPath() + "/figures/Main.class"); if (file.exists()) { file.delete(); } else { assertTrue("expected class " + file, false); } - } - - public void testSymbolFileGenerated() { - File file = openFile("../examples/figures-coverage/all.ajsym"); + + file = openFile("../examples/figures-coverage/all.ajsym"); if (file.exists()) { file.delete(); } else {