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(ExpectException.java:31) at org.apache.maven.plugin.testing.MojoRule$2.evaluate(MojoRule.java:308) at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:47) at org.junit.rules.RunRules.evaluate(RunRules.java:18) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231) 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

About

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.


Follow

Get every new post delivered to your Inbox.