title: Junit - java.lang.Exception: No runnable methods
body: <p>I am doing a tutorial on execute server test cases by using a driver class. The Eclipse error pane showed <em>error message: java.lang.Exception: No runnable methods</em>. The error message occurred when 
  driver class tried to run exceptionTesting class.</p>
  
  <p>Based pm this post:  <a href="https://stackoverflow.com/questions/2818570/java-lang-exception-no-runnable-methods-junit">java.lang.exception no runnable methods junit</a>. It seems like @Test annotation should be used in the test class or updating Junit Jar file to most current version will solve the issue.</p>
  
  <p>Junit Jar file version: 4.11 </p>
  
  <p>Please review my code and advise me what modification shall I do to avoid the error message. Thanks!</p>
  
  <p>Driver Class:</p>
  
  <pre><code>import org.junit.runner.*;
  import org.junit.runners.Suite;
  
   @RunWith(Suite.class)
   @Suite.SuiteClasses({
       basicAnnotation.class,
       personTest.class,
       exceptionTesting.class
   })
  public class UnitTestDriver {
  
  } 
  </code></pre>
  
  <p>exceptionTesting class</p>
  
  <pre><code>import org.junit.*;
  import org.junit.Test;
  
  
  public class exceptionTesting 
  {
    public class junitTest2{
        @Test (expected = ArithmeticException.class)
        public void divisionWithException(){
            int i = 1/0;
        }
  
    }
  }
  </code></pre>