Matthew Reid

matt-reid.co.uk

java.lang.VerifyError: class net.sf.cglib.core.DebuggingClassWriter

A note to anyone getting the following message java.lang.VerifyError: class net.sf.cglib.core.DebuggingClassWriter overrides final method visit ..

Add a new file to an existing jar

Just a quick one, here is a simple command for adding a file to an existing jarjar -uvf JARNAME.jar NEWFILENAME

Mockito - ArgumentCaptor to see email content

Mockito provides a nice way to capture the arguments passed into your mocks. This works a treat when verifying the contents of an email send via a mocked JavaMailSenderArgumen..

Hibernate criteria count rows

Just a quick one that I forgot to note down. If you want to count rows using a hibernate query, here is the bit of magic that you need.return (Number) session.createCriteria(B..

Android: Fixing the Spring Android Twitter Example

getWebView().setWebViewClient(new TwitterOAuthWebViewClient());I have been using the excellent Spring Android for interaction with an api for an app I am developing at work. The ..

 

If the user can't use it,  it doesn't work.