summaryrefslogtreecommitdiffstats
path: root/tests/src
diff options
context:
space:
mode:
authoracolyer <acolyer>2005-08-21 19:53:30 +0000
committeracolyer <acolyer>2005-08-21 19:53:30 +0000
commit262edc95da3a65bb4c86024abf531ac0ddf8bd69 (patch)
tree8c42083fa9677838168e3ddc6a8fd5ad7b1f8e7e /tests/src
parentce7e64ba610a2957b81d373986668c6cf60b8722 (diff)
downloadaspectj-262edc95da3a65bb4c86024abf531ac0ddf8bd69.tar.gz
aspectj-262edc95da3a65bb4c86024abf531ac0ddf8bd69.zip
hasmember (hasmethod / hasfield) tests - not linked into main suite at this point in time
Diffstat (limited to 'tests/src')
-rw-r--r--tests/src/org/aspectj/systemtest/ajc150/HasMember.java57
1 files changed, 57 insertions, 0 deletions
diff --git a/tests/src/org/aspectj/systemtest/ajc150/HasMember.java b/tests/src/org/aspectj/systemtest/ajc150/HasMember.java
new file mode 100644
index 000000000..9eb7ba5af
--- /dev/null
+++ b/tests/src/org/aspectj/systemtest/ajc150/HasMember.java
@@ -0,0 +1,57 @@
+/*******************************************************************************
+ * Copyright (c) 2004 IBM
+ * 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:
+ * Adrian Colyer - initial API and implementation
+ *******************************************************************************/
+package org.aspectj.systemtest.ajc150;
+
+import java.io.File;
+
+import junit.framework.Test;
+
+import org.aspectj.testing.XMLBasedAjcTestCase;
+
+public class HasMember extends XMLBasedAjcTestCase {
+
+ public static Test suite() {
+ return XMLBasedAjcTestCase.loadSuite(HasMember.class);
+ }
+
+ protected File getSpecFile() {
+ return new File("../tests/src/org/aspectj/systemtest/ajc150/ajc150.xml");
+ }
+
+ public void testSimpleDecPHasMethod() {
+ runTest("declare parents : hasmethod(..) - 1");
+ }
+
+ public void testSimpleDecPHasMethodInherited() {
+ runTest("declare parents : hasmethod(..) - 2");
+ }
+
+ public void testSimpleDecPHasMethodInheritedPrivate() {
+ runTest("declare parents : hasmethod(..) - 3");
+ }
+
+ public void testDecPHasMethodViaITD() {
+ runTest("declare parents : hasmethod(..) - 4");
+ }
+
+ public void testSimpleDecPHasField() {
+ runTest("declare parents : hasfield(..) - 1");
+ }
+
+ public void testSimpleDecPHasFieldInherited() {
+ runTest("declare parents : hasfield(..) - 2");
+ }
+
+ public void testSimpleDecPHasFieldInheritedPrivate() {
+ runTest("declare parents : hasfield(..) - 3");
+ }
+
+} \ No newline at end of file