Another Cryptic Message from Maven

I am still struggling with the development (and most of all, the tests) of a Maven plug-in. After I tried to run unit tests in my Eclipse, I got the following error. java.lang.Exception: Unexpected exception, expected but was at org.junit.internal.runners.statements.ExpectException.evaluate( at org.apache.maven.plugin.testing.MojoRule$2.evaluate( at org.junit.rules.TestWatcher$1.evaluate( at org.junit.rules.RunRules.evaluate( at org.junit.runners.ParentRunner.runLeaf( at org.junit.runners.BlockJUnit4ClassRunner.runChild( at org.junit.runners.BlockJUnit4ClassRunner.runChild( at org.junit.runners.ParentRunner$ at […]

Posted at 10:22 am on July 23, 2014 | Leave a comment | Filed Under: Java tips | Tagged: , | Continue reading

Write Unit Tests for a Maven plug-in

Today, I started to write unit tests for a Maven plug-in I am working on. For the moment, I created 3 mojos and registered them for a custom packaging I defined in the plexus file called components.xml. Before implementing these mojos, I wanted to set up unit tests. For this, I followed these explanations on […]

Posted at 8:11 am on July 23, 2014 | Leave a comment | Filed Under: Java tips | Tagged: , | Continue reading


My name is Vincent Zurczak.
I am a R&D Engineer working for a French Software Editor.

I have a solid experience in Eclipse development, Service-Oriented Architectures (SOA) and integration issues. I am now working on a project related to deployment and cloud computing. The project is called Roboconf and is open source.

I used to be a committer on Petals ESB (OW2), SCA Tools (Eclipse) and BPEL Designer (Eclipse).

You can also take a look at my French blog and my GitHub account.


Get every new post delivered to your Inbox.