From 31c52df57dbc34ebea91712d236a096f67153201 Mon Sep 17 00:00:00 2001 From: wisberg Date: Thu, 28 Aug 2003 18:27:50 +0000 Subject: [PATCH] serializing tests. Some depended on others for builds, but test run order is not guaranteed. --- .../internal/AspectJBuildManagerTest.java | 30 +++++-------------- 1 file changed, 8 insertions(+), 22 deletions(-) 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 { -- 2.39.5