TestNG No runnable methods
<p>I have a problem with selenium and testNG, this is my code:</p>

<pre><code>public class NewTestNGTest {

    @BeforeClass
    public void setUp() {
        WebDriver driver = new FirefoxDriver();

        driver.get("https://www.google.com");
    }

    @Test
    public void aTest() {
        System.out.println("Test");
    }

    @AfterClass
    public void cleanUp() {
        // code that will be invoked after this test ends
    }

}
</code></pre>

<p>and the error log shows:</p>

<blockquote>
  <p>Testcase: initializationError(NewTestNGTest): Caused an ERROR<br>
  No runnable methods<br>
  java.lang.Exception: No runnable methods at java.lang.reflect.Constructor.newInstance(Constructor.java:526)</p>
</blockquote>

<p>Any suggestions for me?</p>

<p>Thank you</p>