title: Only 1 test class is running and TestNG execution hangs
body: <p>I am having 2 test classes - <code>PostTests</code> and <code>UserTests</code>. I specified both of them in <code>testng.xml</code> file and when running using maven, I am seeing that all the methods of the 1st specified class in testng are running and it hangs....class 2 methods are not running. It's hanging.
  Can you please help me what am I doing wrong.</p>
  
  <p><strong>Below is my <code>testng.xml</code></strong></p>
  
  <pre><code>&lt;suite name="TestAll"&gt;
    &lt;test name="post"&gt;
      &lt;classes&gt;
        &lt;class name="com.vin.vinapi.PostTests"/&gt;
      &lt;/classes&gt;
    &lt;/test&gt;
    &lt;test name="user"&gt;
      &lt;classes&gt;
        &lt;class name="com.vin.vinapi.UserTests"/&gt;
      &lt;/classes&gt;
    &lt;/test&gt;
  &lt;/suite&gt;
  </code></pre>
  
  <p><strong>Below is output of execution</strong></p>
  
  <pre><code>[INFO] Scanning for projects...
  [INFO] 
  [INFO] ------------------------------------------------------------------------
  [INFO] Building vinapi 0.0.1-SNAPSHOT
  [INFO] ------------------------------------------------------------------------
  [WARNING] The POM for com.google.code.gson:gson:jar:2.2.4 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
  [INFO] 
  [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ vinapi ---
  [INFO] Using 'UTF-8' encoding to copy filtered resources.
  [INFO] skip non existing resourceDirectory /Users/i332939/Documents/workspace/vinapi/src/main/resources
  [INFO] 
  [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ vinapi ---
  [INFO] Nothing to compile - all classes are up to date
  [INFO] 
  [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ vinapi ---
  [INFO] Using 'UTF-8' encoding to copy filtered resources.
  [INFO] skip non existing resourceDirectory /Users/i332939/Documents/workspace/vinapi/src/test/resources
  [INFO] 
  [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ vinapi ---
  [INFO] Nothing to compile - all classes are up to date
  [INFO] 
  [INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ vinapi ---
  [INFO] Surefire report directory: /Users/i332939/Documents/workspace/vinapi/target/surefire-reports
  -------------------------------------------------------
  T E S T S
  -------------------------------------------------------
  Running TestSuite
  Request URL : https://jsonplaceholder.typicode.com/posts
  Response Code : 200
  Request URL : https://jsonplaceholder.typicode.com/posts/2
  Response Code : 200
  Request URL : https://jsonplaceholder.typicode.com/users
  </code></pre>
  
  <p>As you can see above 2 tests from <code>PostTests.java</code> (<code>/posts</code> and <code>/posts/2</code>) executed and 1 test (<code>/users</code>) from <code>UserTests</code> started and it hanged there only</p>
  
  <p>When I move <code>UserTests</code> above <code>PostTests</code> in <code>testng.xml</code>, then all tests of <code>UserTests</code> are executing and when 1 test of <code>PostTests</code> starts it hangs.</p>
  
  <p>Same output when running through a command line or through eclipse.</p>