summaryrefslogtreecommitdiffstats
path: root/loadtime5/java5-testsrc
diff options
context:
space:
mode:
authorwisberg <wisberg>2005-05-11 09:33:34 +0000
committerwisberg <wisberg>2005-05-11 09:33:34 +0000
commit21dda4b6e9e0111c53881bcfedc9833d63fee5a6 (patch)
tree439dce528aba878a8605c92540466d2feb37f496 /loadtime5/java5-testsrc
parent7679c0851b89ffba34b5ec9d3b05511dcdc85d9c (diff)
downloadaspectj-21dda4b6e9e0111c53881bcfedc9833d63fee5a6.tar.gz
aspectj-21dda4b6e9e0111c53881bcfedc9833d63fee5a6.zip
src -> java5-src; note test target runs AsmModuleTests, not Loadtime5ModuleTests - prior bug. See newbuild.xml.
Diffstat (limited to 'loadtime5/java5-testsrc')
-rw-r--r--loadtime5/java5-testsrc/Loadtime515ModuleTests.java29
-rw-r--r--loadtime5/java5-testsrc/org/aspectj/weaver/loadtime/LoadtimeTests.java26
2 files changed, 55 insertions, 0 deletions
diff --git a/loadtime5/java5-testsrc/Loadtime515ModuleTests.java b/loadtime5/java5-testsrc/Loadtime515ModuleTests.java
new file mode 100644
index 000000000..91d3aece8
--- /dev/null
+++ b/loadtime5/java5-testsrc/Loadtime515ModuleTests.java
@@ -0,0 +1,29 @@
+/*******************************************************************************
+ * Copyright (c) 2005 Contributors.
+ * 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://eclipse.org/legal/epl-v10.html
+ *
+ * Contributors: (See CVS logs)
+ *
+ *******************************************************************************/
+
+import org.aspectj.weaver.loadtime.LoadtimeTests;
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+/**
+ */
+public class Loadtime515ModuleTests extends TestCase {
+
+ public static Test suite() {
+ TestSuite suite = new TestSuite(Loadtime515ModuleTests.class.getName());
+ suite.addTestSuite(LoadtimeTests.class);
+ return suite;
+ }
+
+}
diff --git a/loadtime5/java5-testsrc/org/aspectj/weaver/loadtime/LoadtimeTests.java b/loadtime5/java5-testsrc/org/aspectj/weaver/loadtime/LoadtimeTests.java
new file mode 100644
index 000000000..f777b7ff5
--- /dev/null
+++ b/loadtime5/java5-testsrc/org/aspectj/weaver/loadtime/LoadtimeTests.java
@@ -0,0 +1,26 @@
+/* *******************************************************************
+ * Copyright (c) 2005 Contributors.
+ * 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://eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Wes Isberg initial implementation
+ * ******************************************************************/
+
+
+package org.aspectj.weaver.loadtime;
+
+import java.lang.instrument.Instrumentation;
+
+import junit.framework.TestCase;
+
+public class LoadtimeTests extends TestCase {
+
+ public void testPremain() throws Exception {
+ Class[] parmTypes = {String.class, Instrumentation.class };
+ assertNotNull(Agent.class.getMethod("premain", parmTypes));
+ }
+}