aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/test/resources/org/aspectj/systemtest/model/model.xml
blob: 08ecc11134c5035cf8041ac9ef4f555bc3f7175c (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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>

<!-- Model and Hierarchy Tests -->
<suite>
<!-- non-AspectJ 5 specific tests -->

    <ajc-test dir="model/pr238054" title="multiple identical jps on one line">
        <compile files="pr238054.aj" options="-emacssym"/>
    </ajc-test> 



    <ajc-test dir="model/pr77269_1" title="advice in structure model with anonymous inner class">
        <compile files="pack/pr77269.aj" options="-emacssym -Xset:minimalModel=false"/>
    </ajc-test> 

    <ajc-test dir="model/pr77269_2" title="advice in structure model with named inner class">
        <compile files="pr77269b.aj" options="-emacssym -Xset:minimalModel=false"/>
    </ajc-test> 

    <ajc-test dir="model/pr77269_3" title="declare warning in structure model with anonymous inner class">
        <compile files="pack/pr77269c.aj" options="-emacssym -Xset:minimalModel=false">
        	<message kind="warning" line="8" text="blah blah blah"/>
        </compile>
    </ajc-test> 

    <ajc-test dir="model/pr145963_1" title="sourcelocation and jar file">
      <compile files="C.java, SourceAspect.aj" aspectpath="simple.jar" options="-emacssym">
		<message kind="warning" line="6" text="There should be no printlns"/>
	  </compile>
    </ajc-test>

    <ajc-test dir="model/pr145963_2" title="sourcelocation and class file">
      <compile files="C.java, SourceAspect.aj" aspectpath="pkg" options="-emacssym">
		<message kind="warning" line="6" text="There should be no printlns"/>
	  </compile>
    </ajc-test>

   <ajc-test dir="model/pr145963_3" title="aspect in default package">
      <compile files="C.java" aspectpath="simple.jar" options="-emacssym -Xset:minimalModel=false">
		<message kind="warning" line="6" text="There should be no printlns"/>
	</compile>
    </ajc-test>

   <ajc-test dir="model/pr145963_4" title="aspect in java file">
      <compile files="C.java" aspectpath="simple.jar" options="-emacssym -Xset:minimalModel=false">
		<message kind="warning" line="6" text="There should be no printlns"/>
	</compile>
    </ajc-test>
    
    <ajc-test dir="model/pr141730_1" title="new iprogramelement methods">
      <compile files="pr141730.aj" options="-emacssym"/>
    </ajc-test>

	<ajc-test dir="model/pr141730_3" title="ensure aspectpath injar relationships are correct when not filling in model">
      <compile files="MyFoo.java" aspectpath="aspectpath.jar" options="-emacssym"/>
    </ajc-test>

	<ajc-test dir="model/pr148027" title="ensure pcd declare in class appears in model">
      <compile files="A.aj, C.aj" options="-emacssym"/>
    </ajc-test>

	<ajc-test dir="model/pr160469_1" title="ensure advice from abstract aspects appear correctly in the model">
      <compile files="Simple.java" options="-emacssym" aspectpath="aspects.jar"/>
    </ajc-test>

	<ajc-test dir="model/pr160469_2" title="ensure deow from abstract aspects appear correctly in the model">
      <compile files="Simple.java" options="-emacssym -Xset:minimalModel=false" aspectpath="aspects.jar">
		<message kind="warning" line="5" text="warning"/>
      </compile>
    </ajc-test>

<!-- AspectJ 5 specific tests -->

	<ajc-test dir="model/pr115607" title="declare at type appears correctly in structure model">
        <compile files="pr115607.java" options="-1.8,-emacssym,-Xset:minimalModel=false"/>
    </ajc-test>

    <ajc-test dir="model/pr131932" title="structure model for generic itd">
        <compile files="pr131932.aj" options="-1.8 -emacssym"/>
    </ajc-test>

    <ajc-test dir="model/pr132130" title="declare annotation appears in structure model when in same file">
        <compile files="pr132130.aj" options="-1.8 -emacssym -Xset:minimalModel=false"/>
    </ajc-test>
    
    <ajc-test dir="model/pr120356" title="@AJ deow appear correctly when structure model is generated">
        <compile files="C.java, A.java" options="-1.8, -emacssym -Xset:minimalModel=false">
         <message kind="error" line="8" text="error"/>
         <message kind="warning" line="5" text="warning"/>
        </compile>
    </ajc-test>

    <ajc-test dir="model/pr143924" title="declare @method relationship">
     <compile files="pr143924.aj" options="-1.8 -showWeaveInfo -emacssym -Xset:minimalModel=false">
        <message kind="weave" text="'public void BankAccount.debit(String,long)' (pr143924.aj:7) is annotated with @Secured"/>
     </compile>
    </ajc-test>
    
    <ajc-test dir="model/pr141730_2" title="new iprogramelement methods for generics">
      <compile files="pr141730.aj" options="-1.8 -emacssym"/>
    </ajc-test>

	<ajc-test dir="model/pr141730_4" title="ensure inpath injar relationships are correct when not filling in model">
      <compile files="MyBar.aj, MyAnnotation.java, NewClass.java" inpath="inpath.jar" options="-1.8 -emacssym -Xset:minimalModel=false">
			<message kind="warning" line="20" text="System.out should not be called"/>
	  </compile>
    </ajc-test>
    
    <ajc-test dir="model/prX" title="inpath advised elements">
      <compile files="X.java" inpath="inpath.jar" options="-1.8 -emacssym"/>
    </ajc-test>


</suite>