Category: maven

End-to-end testing Java web applications with an embedded Tomcat

 In this instalment on assembly testing [1] I'll talk about how automated system tests run over my Java web applications. The set-up is rather cheap, not very labour-intensive and can incrementally evolve from a simple assembly test (aka smoke test) to a full-fledged system test. Since this post is rather concrete naming tools and frameworks, … Continue reading End-to-end testing Java web applications with an embedded Tomcat

When scala unitests won’t run in the Scala IDE with Maven

Stupid problem: scala unit tests / scalatest tests suddenly won't run after a failed maven build claiming with a ClassNotFoundException that the test class doesn't exist. I believe this to be a weird class loading issue where Eclipse doesn't include unit tests into the classpath.The very, very sad workaround is: run a successful maven build … Continue reading When scala unitests won’t run in the Scala IDE with Maven

Using gitub as a maven repository

If you shun the work that comes with uploading JARs to the central maven repository, here's a simple way to host your own maven repository on github [1].I'm copying the bare essentials from Christian Kaltepoth's article, you should read it for the details:Setting up----$ pwd/home/ck/workspace/jsf-maven-util$ cd ..$ git clone git@github.com:chkal/jsf-maven-util.git jsf-maven-util-pages$ cd jsf-maven-util-pages $ git symbolic-ref … Continue reading Using gitub as a maven repository

java.lang.NoClassDefFoundError: org/apache/openjpa/enhance/PersistenceCapable

My current project is using JPA, heavily. JPA is a spec/standard/interface and I'm using the Hibernate implementation for it, but I import the entities from a different maven module. The entities module has a dependency on JPA, but not on Hibernate. So when I run my unit tests, I suddenly get a:java.lang.NoClassDefFoundError: org/apache/openjpa/enhance/PersistenceCapableOpenjpa? Where does … Continue reading java.lang.NoClassDefFoundError: org/apache/openjpa/enhance/PersistenceCapable