I\'m trying run a Junit test,have configured before only projects without maven, now i am trying to make this integration, but i stop in this following error:
You can do a simple test in your project to make sure class "org.postgresql.Driver" is on your classpath
try {
Class.forName("org.postgresql.Driver");
//on classpath
} catch(ClassNotFoundException e) {
// not on classpath
}
did you add the postgres dependency in your pom.xml ??
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>9.3-1100-jdbc41</version>
</dependency>