aboutsummaryrefslogtreecommitdiffstats
path: root/ajbrowser/src/test
diff options
context:
space:
mode:
authorAndy Clement <aclement@pivotal.io>2019-01-30 11:51:42 -0800
committerAndy Clement <aclement@pivotal.io>2019-01-30 11:51:42 -0800
commit2ea72e189303b144ac28fd665c667da984a56a0e (patch)
tree488f61e77ca19a72109c616e0ef7e189d2718715 /ajbrowser/src/test
parent06733da053901eeee363a05f8fbe6b9c27056a77 (diff)
downloadaspectj-2ea72e189303b144ac28fd665c667da984a56a0e.tar.gz
aspectj-2ea72e189303b144ac28fd665c667da984a56a0e.zip
mavenizing ajbrowser - wip
Diffstat (limited to 'ajbrowser/src/test')
-rw-r--r--ajbrowser/src/test/java/org/aspectj/tools/ajbrowser/AjbrowserModuleTests.java30
-rw-r--r--ajbrowser/src/test/java/org/aspectj/tools/ajbrowser/AjbrowserTests.java35
-rw-r--r--ajbrowser/src/test/java/org/aspectj/tools/ajbrowser/JemmyDriver.java80
3 files changed, 145 insertions, 0 deletions
diff --git a/ajbrowser/src/test/java/org/aspectj/tools/ajbrowser/AjbrowserModuleTests.java b/ajbrowser/src/test/java/org/aspectj/tools/ajbrowser/AjbrowserModuleTests.java
new file mode 100644
index 000000000..d0d87f133
--- /dev/null
+++ b/ajbrowser/src/test/java/org/aspectj/tools/ajbrowser/AjbrowserModuleTests.java
@@ -0,0 +1,30 @@
+package org.aspectj.tools.ajbrowser;
+/* *******************************************************************
+ * Copyright (c) 1999-2001 Xerox Corporation,
+ * 2002 Palo Alto Research Center, Incorporated (PARC).
+ * All rights reserved.
+ * This program and the accompanying materials are made available
+ * under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Xerox/PARC initial implementation
+ * ******************************************************************/
+
+
+// default package
+
+import junit.framework.*;
+
+public class AjbrowserModuleTests extends TestCase {
+
+ public static TestSuite suite() {
+ TestSuite suite = new TestSuite(AjbrowserModuleTests.class.getName());
+ suite.addTest(org.aspectj.tools.ajbrowser.AjbrowserTests.suite());
+ return suite;
+ }
+
+ public AjbrowserModuleTests(String name) { super(name); }
+
+}
diff --git a/ajbrowser/src/test/java/org/aspectj/tools/ajbrowser/AjbrowserTests.java b/ajbrowser/src/test/java/org/aspectj/tools/ajbrowser/AjbrowserTests.java
new file mode 100644
index 000000000..dab5e791a
--- /dev/null
+++ b/ajbrowser/src/test/java/org/aspectj/tools/ajbrowser/AjbrowserTests.java
@@ -0,0 +1,35 @@
+/* *******************************************************************
+ * Copyright (c) 1999-2001 Xerox Corporation,
+ * 2002 Palo Alto Research Center, Incorporated (PARC).
+ * All rights reserved.
+ * This program and the accompanying materials are made available
+ * under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Xerox/PARC initial implementation
+ * ******************************************************************/
+
+
+package org.aspectj.tools.ajbrowser;
+
+import junit.framework.*;
+
+public class AjbrowserTests extends TestCase {
+
+ public static Test suite() {
+ TestSuite suite = new TestSuite(AjbrowserTests.class.getName());
+ suite.addTestSuite(AjbrowserTests.class);
+ //$JUnit-BEGIN$
+ //suite.addTestSuite(BrowserManagerTest.class);
+ //$JUnit-END$
+ return suite;
+ }
+
+ public AjbrowserTests(String name) { super(name); }
+
+ // AjBrowser is waiting for some tests - have to have a placeholder to
+ // keep JUnit happy...
+ public void testNothing() {}
+}
diff --git a/ajbrowser/src/test/java/org/aspectj/tools/ajbrowser/JemmyDriver.java b/ajbrowser/src/test/java/org/aspectj/tools/ajbrowser/JemmyDriver.java
new file mode 100644
index 000000000..b993713ca
--- /dev/null
+++ b/ajbrowser/src/test/java/org/aspectj/tools/ajbrowser/JemmyDriver.java
@@ -0,0 +1,80 @@
+/* *******************************************************************
+ * Copyright (c) 1999-2001 Xerox Corporation,
+ * 2002 Palo Alto Research Center, Incorporated (PARC).
+ * All rights reserved.
+ * This program and the accompanying materials are made available
+ * under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Xerox/PARC initial implementation
+ * ******************************************************************/
+
+
+package org.aspectj.tools.ajbrowser;
+//
+//import org.netbeans.jemmy.Test;
+//import org.netbeans.jemmy.Scenario;
+//import org.netbeans.jemmy.ClassReference;
+//import org.netbeans.jemmy.operators.JFrameOperator;
+//import org.netbeans.jemmy.operators.JButtonOperator;
+//
+///**
+// * Programmatically drives AJBrowser gui,
+// * currently to do a build.
+// */
+//public class JemmyDriver implements Scenario {
+//
+// public static final String CUT
+// = "org.aspectj.tools.ajbrowser.Main";
+// public static final String DRIVER
+// = "org.aspectj.tools.ajbrowser.JemmyDriver";
+//
+// // XXX need to fix literal path locations
+// public static final String USERDIR
+// = "j:/home/wes/dev/tools/aj/examples";
+// public static final String FILENAME_RELATIVE
+// = USERDIR + "spacewar/debug.lst";
+// public static final String FILENAME
+// = USERDIR + "/" + FILENAME_RELATIVE;
+//
+// public static void main(String[] argv) {
+// // 0 is (this) class name
+// // 1 is the location of the work directory
+// // others are parameters
+// String[] params = {DRIVER, USERDIR, FILENAME};
+// Test.main(params);
+// }
+//
+// public int runIt(Object param) {
+// try {
+// String[] args = new String[]{};
+// // grab parameter - pass in .lst file
+// if (null != param) {
+// Class c = param.getClass();
+// if (c.isArray() &&
+// (String.class == c.getComponentType())) {
+// args = (String[]) param;
+// if (0 < args.length) {
+// if (FILENAME.equals(args[0])) {
+// System.out.println("got file...");
+// }
+// }
+// }
+// }
+// // start application with our .lst file
+// new ClassReference(CUT).startApplication(args);
+// // wait frame
+// JFrameOperator mainFrame = new JFrameOperator("AspectJ Browser");
+// // do a build - hangs if no list file
+// new JButtonOperator(mainFrame, "Build").push();
+//
+// } catch(Exception e) {
+// e.printStackTrace();
+// return(1);
+// }
+// return(0);
+// }
+//
+//}