title: How to resolve JUnit 4 FAILED message on Initialization Error even when test case methods are all PASSED?
body: <p>I am encountering this error in the terminal when I tried to run my test code in JUnit 4. However, my test code are all PASSED but there are FAILED errors displaying in the terminal as well which I don't understand.</p>
  <p>NOTE: Only CallStack.java is not tested in this JUnit class</p>
  <pre><code>&gt; Task :test FAILED
  
  DSAQueue &gt; initializationError FAILED
      java.lang.IllegalArgumentException: Test class can only have one constructor
  
  DSAStack &gt; initializationError FAILED
      java.lang.IllegalArgumentException: Test class can only have one constructor
  
  EquationSolver &gt; initializationError FAILED
      java.lang.Exception: No runnable methods
  
  CallStack &gt; initializationError FAILED
      java.lang.Exception: No runnable methods
  
  DSAShufflingQueue &gt; initializationError FAILED
      java.lang.IllegalArgumentException: Test class can only have one constructor
  
  DSACircularQueue &gt; initializationError FAILED
      java.lang.IllegalArgumentException: Test class can only have one constructor
  
  JUnitTest &gt; testStack PASSED
  
  JUnitTest &gt; testShufflingQueue PASSED
  
  JUnitTest &gt; testEquationSolver PASSED
  
  JUnitTest &gt; testCircularQueue PASSED
  
  10 tests completed, 6 failed
  </code></pre>
  <p>My Test Class begins in this way.</p>
  <pre><code>import org.junit.*;
  import org.junit.runner.RunWith;
  import org.junit.runners.JUnit4;
  import static org.junit.Assert.*;
  import java.io.*;
  
  @RunWith(JUnit4.class)
  public class JUnitTest
  {
      @Test
      public void testStack()
      {
          /* test code */
      }
  
      @Test
      public void testShufflingQueue()
      {
          /* test code */
      }
  
      @Test
      public void testCircularQueue()
      {
          /* test code */
      }
  
      @Test
      public void testEquationSolver()
      {
          /* test code */
      }
  }
  </code></pre>