aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/test/resources/org/aspectj/systemtest/ajc196/ajc196.xml
blob: 2f90276aafff671194d48b9c45634a4fe6d72e90 (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
116
117
118
119
<!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>

<suite>

    <ajc-test dir="bugs196/558995" title="early resolution of supporting interfaces">
    	<compile options="-18" files="foo/SynchronizedStaticAspect.aj foo/SynchronizedAspect.aj foo/SynchronizedTest.java foo/Synchronized.java"/>
    </ajc-test>

	<!-- switch now in Java14 and doesn't need -enable-preview flag -->
	<ajc-test dir="features193" vm="14" title="switch 1">
		<compile files="Switch1.java" options="-14">
		</compile>
		<run class="Switch1">
			<stdout>
				<line text="0" />
				<line text="1" />
				<line text="2" />
				<line text="3" />
			</stdout>
		</run>
	</ajc-test>

	<ajc-test dir="features193" vm="14" title="switch 2">
		<compile files="Switch2.java" options="-source 14">
		</compile>
		<run class="Switch2" vmargs="">
			<stdout>
				<line text="0" />
				<line text="2" />
				<line text="4" />
				<line text="6" />
			</stdout>
		</run>
	</ajc-test>

	<ajc-test dir="features193" vm="14" title="switch 3">
		<compile files="Switch3.java" options="-source 14">
		</compile>
		<run class="Switch3" vmargs="">
			<stdout>
				<line text="3" />
				<line text="6" />
				<line text="9" />
				<line text="12" />
			</stdout>
		</run>
	</ajc-test>

	<ajc-test dir="features196/java14" vm="14" title="simple record">
		<compile files="Person.java" options="--enable-preview  -14" />
	</ajc-test>

	<ajc-test dir="features196/java14" vm="14" title="using a record">
		<compile files="Person.java UsingPersonRecord.java"
			options="--enable-preview -14" />
		<run class="UsingPersonRecord" vmargs="--enable-preview">
			<stdout>
				<line text="Person[firstName=A, lastName=B, age=99]" />
				<line text="A" />
			</stdout>
		</run>
	</ajc-test>

	<ajc-test dir="features196/java14" vm="14"
		title="instanceof patterns">
		<compile files="Jep305.java" options="--enable-preview -14" />
		<run class="Jep305" vmargs="--enable-preview">
			<stdout>
				<line text="orange" />
				<line text="apple" />
			</stdout>
		</run>
	</ajc-test>


	<ajc-test dir="features196/java14" vm="14"
		title="advising records">
		<compile
			files="TraceRecordComponents.aj Person.java UsingPersonRecord.java"
			options="--enable-preview -14" />
		<run class="UsingPersonRecord" vmargs="--enable-preview">
			<stdout>
				<line text="execution(String Person.toString())" />
				<line text="Person[firstName=A, lastName=B, age=99]" />
				<line text="execution(String Person.firstName())" />
				<line text="A" />
			</stdout>
		</run>
	</ajc-test>


	<!-- textblock still in preview at 14 level -->
	<ajc-test dir="features195/textblock" vm="14"
		title="textblock 1">
		<compile files="Code.java"
			options="--enable-preview -source 14">
		</compile>
		<run class="Code" vmargs="--enable-preview">
			<stdout>
				<line text="this is a text" />
				<line text="block" />
			</stdout>
		</run>
	</ajc-test>

	<ajc-test dir="features195/textblock" vm="14"
		title="textblock 2">
		<compile files="Code2.java"
			options="--enable-preview -source 14">
		</compile>
		<run class="Code2" vmargs="--enable-preview">
			<stdout>
				<line text="this is a text" />
				<line text="block in advice" />
			</stdout>
		</run>
	</ajc-test>

</suite>