package com.siyeh.ig.controlflow;

import com.siyeh.ig.IGInspectionTestCase;

public class ForLoopReplaceableByWhileInspectionTest extends IGInspectionTestCase {

  public void test() {
    doTest("com/siyeh/igtest/controlflow/for_loop_replaceable_by_while",
           new ForLoopReplaceableByWhileInspection());
  }
}
@@ -179,16 +179,157 @@
 est() %7B%0A
+    ForLoopReplaceableByWhileInspection inspection = new ForLoopReplaceableByWhileInspection();%0A    inspection.m_ignoreLoopsWithBody = true;%0A
     doTe
@@ -396,50 +396,10 @@
 le%22,
-%0A           new ForLoopReplaceableByWhileI
+ i
 nspe
@@ -403,18 +403,16 @@
 spection
-()
 );%0A  %7D%0A%7D

fix test data