/* * Created by IntelliJ IDEA. * User: max * Date: Apr 11, 2002 * Time: 6:50:50 PM * To change template for new class use * Code Style | Class Templates options (Tools | IDE Options). */ package com.intellij.codeInspection; import com.intellij.JavaTestUtil; import com.intellij.codeInspection.dataFlow.DataFlowInspection; import com.intellij.codeInspection.ex.LocalInspectionToolWrapper; import com.intellij.testFramework.InspectionTestCase; import org.jetbrains.annotations.NonNls; public class DataFlowInspectionTest extends InspectionTestCase { @Override protected String getTestDataPath() { return JavaTestUtil.getJavaTestDataPath() + "/inspection"; } private void doTest() throws Exception { doTest("dataFlow/" + getTestName(false), new DataFlowInspection()); } private void doTest15() throws Exception { final LocalInspectionToolWrapper tool = new LocalInspectionToolWrapper(new DataFlowInspection()); doTest("dataFlow/" + getTestName(false), tool, "java 1.5"); } public void testnpe1() throws Exception { doTest(); } public void testcaseAndNpe() throws Exception { doTest(); } public void testcce() throws Exception { doTest(); } public void testexceptionCFG() throws Exception { doTest(); } public void testinst() throws Exception { doTest(); } public void testwrongEqualTypes() throws Exception { doTest(); } public void testSCR13702() throws Exception { doTest(); } public void testSCR13626() throws Exception { doTest(); } public void testSCR13871() throws Exception { doTest(); } public void testInstanceof() throws Exception { doTest(); } public void testorBug() throws Exception { doTest(); } public void testSCR14819() throws Exception { doTest(); } public void testSCR14314() throws Exception { doTest(); } public void testSCR15162() throws Exception { doTest(); } public void testCatchParameterCantBeNull() throws Exception { doTest(); } public void testxor() throws Exception { doTest(); } public void testGenericInstanceof() throws Exception { doTest(); } public void testthisInstanceof() throws Exception { doTest(); } public void testandEq() throws Exception { doTest(); } public void testnullableField() throws Exception { doTest(); } public void testSCR39950() throws Exception { doTest(); } public void testscrIDEA1() throws Exception { doTest(); } public void testSCR18186() throws Exception { doTest(); } //public void testSCR15406() throws Exception { // doTest(); //} public void testconstantExpr() throws Exception { doTest(); } public void testIDEADEV74518() throws Exception { doTest(); } public void testIDEADEV74518_2() throws Exception { doTest(); } public void testIDEADEV77819() throws Exception { doTest(); } public void testIDEADEV78370() throws Exception { doTest(); } public void testRegressionByPti() throws Exception { doTest(); } public void testNotNullable() throws Exception { doTest15(); } public void testNotNullableParameter() throws Exception { doTest15(); } public void testNotNullableParameter2() throws Exception { doTest15(); } public void testNullable() throws Exception { doTest15(); } public void testNullableThroughCast() throws Exception { doTest15(); } public void testNullableThroughVariable() throws Exception { doTest15(); } public void testNullableThroughVariableShouldNotBeReported() throws Exception { doTest15(); } public void testNullableAssignment() throws Exception { doTest15(); } public void testNullableLocalVariable() throws Exception { doTest15(); } public void testNotNullLocalVariable() throws Exception { doTest15(); } public void testNullableReturn() throws Exception { doTest15(); } public void testNullableReturn1() throws Exception { doTest15(); } public void testfinalFields() throws Exception { doTest15(); } public void testNotNullArray() throws Exception { doTest15(); } public void testFieldsFlashing() throws Exception { doTest15(); } public void testConditionFalseAndNPE() throws Exception { doTest15(); } public void testIDEADEV1575() throws Exception { doTest15(); } public void testAlexBug() throws Exception { doTest15(); } public void testYoleBug() throws Exception { doTest15(); } public void testForeachFlow() throws Exception { doTest15(); } public void testForEachNPE() throws Exception { doTest15(); } public void testArrayAccessNPE() throws Exception { doTest15(); } public void testArrayAccessDoesntCancelAnalysis() throws Exception { doTest15(); } public void testcompileTimeConst() throws Exception { doTest15(); } public void testautoboxing() throws Exception { doTest15(); } public void testunboxingNPE() throws Exception { doTest15(); } public void testStrangeArrayIndexOutOfBounds() throws Exception { doTest15(); } public void testIDEADEV2605() throws Exception { doTest15(); } public void testConstantsDifferentTypes() throws Exception { doTest15(); } public void testBoxingNaN() throws Exception { doTest15(); } public void testjspTemplateStatement() throws Exception { @NonNls final String testDir = getTestDataPath() + "/"+ "dataFlow/" + getTestName(false); runTool(testDir, "java 1.4", new LocalInspectionToolWrapper(new DataFlowInspection())); // should not crash } public void testboxingBoolean() throws Exception { doTest15();} public void testCheckedExceptionDominance() throws Exception { doTest15();} public void testIDEADEV10489() throws Exception { doTest15();} public void testPlusOnStrings() throws Exception { doTest15();} public void testSwitchQualifierProducesNPE() throws Exception {doTest15();} public void testIDEADEV15583() throws Exception {doTest15();} public void testIDEADEV13153() throws Exception { doTest15(); } public void testIDEADEV13156() throws Exception { doTest15(); } //public void testIDEADEV11033() throws Exception { doTest15(); } public void testSwitchEnumCases() throws Exception { doTest15(); } }