Quantcast
Channel: Trifork Blog » Martin Tilma
Browsing all 2 articles
Browse latest View live

Customize namespace prefix when marshalling with Jaxb

I was looking a long time on how to set the prefix for a namespace when marshalling an object to xml using JAXB. If you don't do anything JAXB will write random namespace prefixes (like ns2, ns3).?...

View Article



Using Hamcrest Matchers.everyItem

For my Junit test I wanted to make use of Matchers.everyItem so I could easily check if every item of a list machtes a certain matcher. Resulting in a small line of code which is nice to read. The...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images