title: JUnit test hangs
body: <p>I have the following problem: one of my JUnit tests gets stuck in eclipse doing nothing, but the blue arrow indicating that this test is currently running persists. </p>
  
  <p>There definitely isn't any infinite loop in my code, and everything in the tested method that gets stuck is in the following <code>for</code> loop:</p>
  
  <pre><code>for (int i = 0; i &lt; this.length(); i += 3) {
      // do some stuff
  }
  </code></pre>
  
  <p>Also, when debugging, the method properly terminates and does not let me step any more.</p>
  
  <p>In the <code>setUp()</code> I am initializing my fields and the class under test.</p>
  
  <p>This seems like some weird JUnit/Eclipse bug.
  I am running Eclipse 3.7.2 and JUnit 4 under Ubuntu 12.04 using oracle-java-7.</p>
  
  <p>Any tips how to troubleshoot this problem?</p>