ALL
That’s Not TDD
A few months ago I was visiting a client who was having a lot of problems using TDD.“It takes over half an hour to run our unit tests,†he said.“You are not doing TDD,†I said. “In order for tests to be valuable all of them must run fast—within a few seconds, or developers will stop running tests frequently.â€â€œBut how to I make them run fast?†he asked, “Just connecting to the database takes 30 secondsâ€So I showed him a technique called Dependency Injections that allowed him to insert a mock object instead of the database. â€...
JSP connect MySQL
To connect MySQL with Java Server Page(JSP). Some steps should be followed:Step 1: Download MySQL JDBC connector driver from the Internet. URL: http://dev.mysql.com/downloads/connector/j/Step 2: Put the jar file downloaded in Step 1 in the Tomcat common lib folder and add this jar file to the CLASSPATH so that the JSP page can find the specified class.Step 3: Create the JSP page with MySQL connection : Example is shown below: <% String driver="com.mysql.jdbc.Driver"; Class.forName(driver).newInstance(); Connection conn=null; Statement stmt=null; Result...
8,178 0 MYSQL JSP CONNECTION DRIVER DOWNLOAD