diff options
author | wisberg <wisberg> | 2003-08-14 23:04:28 +0000 |
---|---|---|
committer | wisberg <wisberg> | 2003-08-14 23:04:28 +0000 |
commit | ae6983bd75683253edcb16e5e6875cbc1e8e4d8c (patch) | |
tree | 55a50ebc1c8c479c770aa2ad24283fca4be168ed /testing/testsrc/org/aspectj | |
parent | c6eb8d360b20d409683eb3f5392249d43828e773 (diff) | |
download | aspectj-ae6983bd75683253edcb16e5e6875cbc1e8e4d8c.tar.gz aspectj-ae6983bd75683253edcb16e5e6875cbc1e8e4d8c.zip |
wire in older minimal test cases
Diffstat (limited to 'testing/testsrc/org/aspectj')
-rw-r--r-- | testing/testsrc/org/aspectj/testing/taskdefs/AjcTaskCompileCommandTest.java | 9 | ||||
-rw-r--r-- | testing/testsrc/org/aspectj/testing/taskdefs/TaskdefTests.java | 29 |
2 files changed, 34 insertions, 4 deletions
diff --git a/testing/testsrc/org/aspectj/testing/taskdefs/AjcTaskCompileCommandTest.java b/testing/testsrc/org/aspectj/testing/taskdefs/AjcTaskCompileCommandTest.java index 5883505ec..d9b89b203 100644 --- a/testing/testsrc/org/aspectj/testing/taskdefs/AjcTaskCompileCommandTest.java +++ b/testing/testsrc/org/aspectj/testing/taskdefs/AjcTaskCompileCommandTest.java @@ -127,10 +127,11 @@ public class AjcTaskCompileCommandTest extends TestCase { MessageHandler handler = new MessageHandler(); String[] parms = (String[]) args.toArray(new String[0]); boolean result = command.runCommand(parms, handler); - final boolean fail = (result == (0 == expectedErrors)); - if (fail) { - String m = "expected " + (fail ? "fail" : "pass"); - assertTrue(m + ": " + args, false); + boolean expectPass = (0 == expectedErrors); + final boolean pass = (result == expectPass); + if (!pass) { + String m = expectPass ? "pass" : "fail"; + assertTrue("expected " + m + ": " + args, false); } } diff --git a/testing/testsrc/org/aspectj/testing/taskdefs/TaskdefTests.java b/testing/testsrc/org/aspectj/testing/taskdefs/TaskdefTests.java new file mode 100644 index 000000000..1ddae2578 --- /dev/null +++ b/testing/testsrc/org/aspectj/testing/taskdefs/TaskdefTests.java @@ -0,0 +1,29 @@ +/* ******************************************************************* + * Copyright (c) 2003 Contributors. + * All rights reserved. + * This program and the accompanying materials are made available + * under the terms of the Common Public License v1.0 + * which accompanies this distribution and is available at + * http://www.eclipse.org/legal/cpl-v10.html + * + * Contributors: + * Wes Isberg initial implementation + * ******************************************************************/ + +package org.aspectj.testing.taskdefs; + +import junit.framework.*; + +public class TaskdefTests extends TestCase { + + public static Test suite() { + TestSuite suite = new TestSuite(TaskdefTests.class.getName()); + //$JUnit-BEGIN$ + suite.addTestSuite(AjcTaskCompileCommandTest.class); + //$JUnit-END$ + return suite; + } + + public TaskdefTests(String name) { super(name); } + +} |