@Test annotation is disallowed for this location | Selenium Forum
M
Posted on 30/12/2016
I have integrated Junit in eclipse. I have written below lines. But I am getting error that @Test annotation is disallowed for this location. Please help me on this issues.

package TestCases;
import org.junit.Test;
public class FirstTestCase {
@Test
public void caseTest1{

}
}

M
Replied on 30/12/2016

attach your java file.


M
Replied on 31/12/2016

please find the attached java File


M
Replied on 01/01/2017

Sorry , I found my mistake. Now , I am pretty much clear.