KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > net > sourceforge > pmd > rules > DataflowAnomalyAnalysisTest


1 /*
2  * Created on 11.12.2006
3  *
4  * Copyright (c) 2006, PMD for Eclipse Development Team
5  * All rights reserved.
6  *
7  * Redistribution and use in source and binary forms, with or without
8  * modification, are permitted provided that the following conditions are
9  * met:
10  *
11  * * Redistributions of source code must retain the above copyright
12  * notice, this list of conditions and the following disclaimer.
13  * * Redistributions in binary form must reproduce the above copyright
14  * notice, this list of conditions and the following disclaimer in the
15  * documentation and/or other materials provided with the distribution.
16  * * The end-user documentation included with the redistribution, if
17  * any, must include the following acknowledgement:
18  * "This product includes software developed in part by support from
19  * the Defense Advanced Research Project Agency (DARPA)"
20  * * Neither the name of "PMD for Eclipse Development Team" nor the names of its
21  * contributors may be used to endorse or promote products derived from
22  * this software without specific prior written permission.
23  *
24  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
25  * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
26  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
27  * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
28  * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
29  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
30  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
31  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
32  * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
33  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
34  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35  */

36
37 package test.net.sourceforge.pmd.rules;
38
39 import net.sourceforge.pmd.Rule;
40 import test.net.sourceforge.pmd.testframework.SimpleAggregatorTst;
41
42 /**
43  *
44  *
45  * @author Sven
46  * @version $Revision: 1.1 $
47  *
48  * $Log: DataflowAnomalyAnalysisTest.java,v $
49  * Revision 1.1 2006/12/11 17:24:58 holobender
50  * added dataflowanomaly-analysis test
51  *
52  *
53  */

54
55 public class DataflowAnomalyAnalysisTest extends SimpleAggregatorTst {
56     
57     private Rule rule;
58     
59     /* (non-Javadoc)
60      * @see junit.framework.TestCase#setUp()
61      */

62     protected void setUp() throws Exception JavaDoc {
63         rule = findRule("controversial", "DataflowAnomalyAnalysis");
64     }
65     
66     public void testAll() {
67         runTests(rule);
68     }
69 }
70
Popular Tags