Posted by Carlos Sierra on 21 Jul 2013

One of the best things of JSP 2.x are, without any doubt, tag files. With tag files we can very easily reuse our view logic without having to embed any markup inside any Java class, or having to resort to different tricks to include other JSPs.

Tag handler classes are much easier to create now using SimpleTagSupport, and using JSP tag files there is almost no need to code markup inside Java.

But what...

Read more...
Reactions
Posted by Carlos Sierra on 12 Feb 2013

Sometimes is useful to be able to compare maps loosely. For example you may have some rest services that you want to test. This tests may very likely involve creation and modification of entities. To be able to assert that an operation was performed correctly, you may only want a subset of the map to be checked, for example excluding ids, timestamps or whatever other data that may not be inferred upfront. Besides we will...

Read more...
Reactions
Posted by Carlos Sierra on 10 Feb 2013

Arquillian and ShrinkWrap are undoubtedly great tools for tests automation. However one of the most difficult parts is usually deployment description.

One of the promises of arquillian is that you can create real tests, instead of having to mock services, since it brings the runtime to the test, or more strictly speaking, it runs the tests in a container where you have all these services available.

Sadly, you normally need to configure the...

Read more...
Reactions