Annotation Type Expected
The import should be
import org.junit.Test;
If you are using jUnit 4.
If you are using upto jUnit 3.8.
import junit.framework.Test;
should work fine.
The import should be
import org.junit.Test;
and not
import junit.framework.Test;