apache/wicket — pull request #57 by mafulafunk (2013-11-03 21:40:43+00:00)
Title: Assert that instance of

Ok,

this is two commits aa422c1 is just because the eclipse property files get in the way.

The commit 0aac81f was inspired by a non informativ test fail.
Like the assert
assertTrue(factory.getFieldValue(field, obj) instanceof ILazyInitProxy);
simply fails with no further information.
As org.hamcrest.CoreMatchers is already pulled into the classpath by junit it might be ok to transform the given assertTrue to:
assertThat(factory.getFieldValue(field, obj), instanceOf(ILazyInitProxy.class));

Now when the assertion fails the value of the first argument is printed
in the test output.