From a9823f122ff3c9322c136292c45c1f9ea7cddc0a Mon Sep 17 00:00:00 2001 From: wisberg Date: Wed, 30 Apr 2003 02:43:30 +0000 Subject: [PATCH] cleaner, but no semantic changes --- .../internal/AspectJBuildManagerTest.java | 27 +++++++++---------- 1 file changed, 13 insertions(+), 14 deletions(-) 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 { -- 2.39.5