If you don’t specify one of these you will get the no public constructor failure described above.

The following is a Fail:

public class YourtestCase extends TestCase {
protected YourtestCase() { }
YourtestCase(String name) { }
public YourtestCase(Object wtv) { }
// There isn't a constuctor which is both public,
// and takes either nothing or a String as an argument
}

Visibility Of The Class

The other problem could be with the visibility of the entire class. *Note the presence of the word public before the keyword class in the following:

public class YourtestCase extends TestCase {
// ...
}

If you neglect it, your class doesn’t have public visibility and JUnit cannot use it as a Test Case: