blob: 3b007963f87178c327e4e59c339bd99b6ba730b9 (
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
|
/*******************************************************************************
* Copyright (c) 2019 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://www.eclipse.org/legal/epl-v10.html
*******************************************************************************/
package org.aspectj.systemtest.ajc193;
import org.aspectj.apache.bcel.Constants;
import org.aspectj.testing.XMLBasedAjcTestCase;
import org.aspectj.testing.XMLBasedAjcTestCaseForJava13OrLater;
import junit.framework.Test;
/**
* @author Andy Clement
*/
public class Java13Tests extends XMLBasedAjcTestCaseForJava13OrLater {
public void testSwitch1() {
runTest("switch 1");
checkVersion("Switch1", Constants.MAJOR_13, Constants.PREVIEW_MINOR_VERSION);
}
public void testSwitch2() {
runTest("switch 2");
checkVersion("Switch2", Constants.MAJOR_13, Constants.PREVIEW_MINOR_VERSION);
}
public void testSwitch3() {
runTest("switch 3");
checkVersion("Switch3", Constants.MAJOR_13, Constants.PREVIEW_MINOR_VERSION);
}
// ---
public static Test suite() {
return XMLBasedAjcTestCase.loadSuite(Java13Tests.class);
}
@Override
protected java.net.URL getSpecFile() {
return getClassResource("ajc193.xml");
}
}
|