JUnit testing, exception in threa main
- by Crystal
I am new to JUnit and am trying to follow my prof's example.
I have a Person class and a PersonTest class. When I try to compile PersonTest.java, I get the following error:
Exception in thread "main" java.lang.NoSuchMethodError: main
I am not really sure why since I followed his example.
Person.java
public class Person implements…