public static Test suite() {
TestSuite suite = new TestSuite(TestingModuleTests.class.getName());
+ suite.addTest(org.aspectj.testing.harness.bridge.TestingBridgeTests.suite());
+ suite.addTest(org.aspectj.testing.taskdefs.TaskdefTests.suite());
suite.addTest(org.aspectj.testing.util.UtilTests.suite());
suite.addTest(org.aspectj.testing.xml.TestingXmlTests.suite());
return suite;
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);
}
}
--- /dev/null
+/* *******************************************************************
+ * 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); }
+
+}