title: How to run multiple test classes or test methods using Maven?
body: <p>In order to run all Maven tests, we can use: </p>
  
  <pre><code>mvn clean test
  </code></pre>
  
  <p>If we want to run specific test class, we can use:</p>
  
  <pre><code>mvn clean test -Dtest=className
  </code></pre>
  
  <p>If we want to run specific method from specific test class, we can use:</p>
  
  <pre><code>mvn clean test -Dtest=className#methodName
  </code></pre>
  
  <p>But I want to run:</p>
  
  <ol>
  <li>multiple test classes(not all that belong to <code>src\test\java</code>)</li>
  <li>multiple test methods from specific test class(not all test methods of specific test class that belong to <code>src\test\java</code>)</li>
  </ol>
  
  <p>Are there Maven commands using which I can achieve above two?</p>