Java beginner, want to try to connect to the local database, according to Baidu experience in the method, the last to perform the test stuck, why? Because the MyEclipse right-click Run as does not have the junit test option!
6.1, test database mysql is a successful connection in the project, running the test class when run as does not have Junit test;
6.2, because the project did not introduce JUnit 's jar Package
After the introduction of the engineering directory should be like this
6.3, adding JUnit jar Packages to the project
project name right →Properties→Java Build Path
6.4Libraries→Add Library Select JUnit, then next
6.5 selected version, then Finish
6.6 Add complete,
Then right-click on the Java class file andRun as to select Junit Test .
Connect my local database successfully
MyEclipse2014 Java class Right-click Run as without JUnit Test