From: wisberg Date: Wed, 30 Apr 2003 02:43:30 +0000 (+0000) Subject: cleaner, but no semantic changes X-Git-Tag: V1_1_0_RC2~105 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a9823f122ff3c9322c136292c45c1f9ea7cddc0a;p=aspectj.git cleaner, but no semantic changes --- diff --git a/ajde/testsrc/org/aspectj/ajde/internal/AspectJBuildManagerTest.java b/ajde/testsrc/org/aspectj/ajde/internal/AspectJBuildManagerTest.java index 569fa6ef7..c69364d85 100644 --- a/ajde/testsrc/org/aspectj/ajde/internal/AspectJBuildManagerTest.java +++ b/ajde/testsrc/org/aspectj/ajde/internal/AspectJBuildManagerTest.java @@ -41,8 +41,9 @@ public class AspectJBuildManagerTest extends AjdeTestCase { } public void testCompileEmptyConfig() { + // XXX should fail? empty configs fail b/c no sources specified doSynchronousBuild("empty.lst"); - assertTrue("compile of empty build config success", testerBuildListener.getBuildSucceeded()); + assertTrue("compile of empty build config", testerBuildListener.getBuildSucceeded()); } public void testCompileSuccess() { @@ -51,23 +52,21 @@ public class AspectJBuildManagerTest extends AjdeTestCase { } public void testCompileOutput() { - File classFile = new File(Ajde.getDefault().getProjectProperties().getOutputPath() + "/figures/Main.class"); - if (classFile != null) { - assertTrue("class file generated", classFile.exists()); - classFile.delete(); - } else { - assertTrue("class file generated", false); + 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 symFile = createFile("../examples/figures-coverage/all.ajsym"); - if (symFile != null) { - assertTrue("sym file generated", symFile.exists()); - symFile.delete(); - } else { - assertTrue("sym file generated", false); - } + File file = createFile("../examples/figures-coverage/all.ajsym"); + if (file.exists()) { + file.delete(); + } else { + assertTrue("expected .ajsym" + file, false); + } } protected void setUp() throws Exception {