summaryrefslogtreecommitdiffstats
path: root/tests/src/org/aspectj/systemtest/ajc150/HasMember.java
blob: e1cf087a8c27edb7661a92c11831e1e28ee7f08c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*******************************************************************************
 * 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");
	  }	 
	  
	  // this test not passing yet, ITD integration not implemented
//	  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");
	  }

}