is getOrderId an instance method of Order? (It probably should be.) Why do you need to pass it in an Order then? It looks like a static method without the static keyword.
<blockquote>
More information about formatting options
I don't write unit tests expecting to catch a lot of failures later, I write them to prevent coding defects now
— Jeff Langr
↑ Grab this Headline Animator
getOrderId revisited
is getOrderId an instance method of Order? (It probably should be.) Why do you need to pass it in an Order then? It looks like a static method without the static keyword.