Today's Question:  What does your personal desk look like?        GIVE A SHOUT

 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. â€...

2,792 0       METHOD DRIVER TDD QA MODEL UNCONTROL


  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,044 0       MYSQL JSP CONNECTION DRIVER DOWNLOAD