I just love the assertion syntax of ScalaTest. It’s easy to read and easy to write and looks like this:
23 should be >= (12)
Even if you know nothing about ScalaTest it should be easy to
understand whats this assertion is about. But what when your...
If you are running your acceptance tests against an embedded web
server (for example, using Jetty), it can occasionally be useful to
access the service layers directly for fixture or infrastructure-related
code. For example, you may have a scenario where a...
Historically we set out to use Vagrant
on the developers laptop. Soon, the complexity of our setup had
outgrown the developers laptop and required another solution. As the
target platform was based on Amazon EC2, it made sense to create
Today we’ll see a small workaround that can be used to accomplish a very common use case regarding geographic search.
The example use case is the following
The client is located in Buenos Aires and wants a purple tie
He enters the query “purple tie” in...
In many articles and blogs we can see how to develop WebServices using JDK6's JAX-WS in-built support in just 5 minutes.We can simply write a POJO and annotate it with @WebService, publish it with Endpoint.publish(...) and you can see the generated wsdl by...
What is science? The practice of making up a fake world, filling it
up with only data that the Scientist approves, in pursuit of publishing a
fairy tale about what happened when the scientist‘s hypothesis was
tested against his sanitized surrogates. We...
I'm not sure when this happened, but at some point the JDK-included
VisualVM utility became extensible. This is really great news for me.
Writing a profiler is a lot of work (although admittedly very
interesting and fun). VisualVM has become such a...
No, those are not ingredients for a new fruit salad recipe. These are
just the components I used in one of my pet project: it’ss a Swing
application in which I wanted to try out CDI. I ended up with Weld SE, which is the CDI RI from JBoss.
Lately, I have been learning a thing or two about the JVM internals. And
one of the most interesting things that I came to know about was, the
existence of different types of references in Java.
To go about it, there are actually 4 kinds of reference...
Software grows organically. One line at a time, one change at a time.
These changes soon add up. In an ideal world, they add up to a coherent
architecture with an intention revealing design. But sometimes software
just grows hairy – full of little...
In a previous article I stated that the reason the deserialisation of
objects was faster was due to using recycled objects. This is
potentially surprising for two reasons, 1) the belief that creating
objects is so fast these days, it doesn't matter or is...
When people present some topic, many try to cover the topic very
thoroughly. Don’t do that. Except your trying to kill your audience be
letting them sleep until they starve to death. A presentation shouldn’t
try to explain an idea completely. The aim...
Duncan and I had an
interesting problem recently where we had to make it possible to search
within an ‘item’ to find possible sub items that exist inside it.
The URI for the item was something like this:
Let’s say Item 234 contains the...
It seems that no matter how much you read about software and how much
you try and learn, you always seem to miss something pretty useful. I’ve
been using Maven for at least three years and only found out a few
weeks ago that you can search the Maven...