blob: db407560ccaef3fb244c7eb0c386f183e6719367 (
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
|
/*******************************************************************************
* 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:
* Andy Clement - initial API and implementation
*******************************************************************************/
package org.aspectj.systemtest.ajc150;
import java.io.File;
import junit.framework.Test;
import org.aspectj.testing.XMLBasedAjcTestCase;
public class SuppressedWarnings extends XMLBasedAjcTestCase {
public static Test suite() {
return XMLBasedAjcTestCase.loadSuite(SuppressedWarnings.class);
}
protected File getSpecFile() {
return new File("../tests/src/org/aspectj/systemtest/ajc150/ajc150.xml");
}
// Check basic suppression
public void testSuppression1() {
runTest("suppressing non-matching advice warnings");
}
// Checks source contexts aren't put out incorrectly
// NOTE: Source contexts only come out if the primary source location in a message
// matches the file currently being dealt with. Because advice not matching
// messages come out at the last stage of compilation, you currently only
// get sourcecontext for advice not matching messages that point to places in
// the last file being processed. You do get source locations in all cases -
// you just don't always get context, we could revisit this sometime...
// (see bug 62073 reference in WeaverMessageHandler.handleMessage())
public void testSuppression2() {
runTest("suppressing non-matching advice warnings when multiple source files involved");
}
public void testSuppressionWithCflow_pr93345() {
runTest("XLint warning for advice not applied with cflow(execution)");
}
}
|