I had an issue a couple of weeks ago while migrating some code from using bare
Map[String, String] to a value class surrounding that map (HttpHeaders), and ran into issues with Mockito (even with the Specs2 helpers).
Long story short I was able to fix it with the following changes:
+ .thenReturn(Map.empty[HttpHeader[_], Vector[String]])
Last August (2013) I ran into an issue where I wanted to get the latest 10 created entities from a database table but I was getting the first 10 instead. The relevant components of the stack involved were PostgreSQL 9.3, with Hibernate 4.2 used as the EntityManager provider for Spring Data JPA 1.4. Turns out that the cause is an old, obscure (but known) issue in Hibernate: HHH-5574. Continue Reading
I like blogging from time to time, but I wish I could do things the way I like. One issue I have with having my blog here on wordpress is that I don’t have a local copy of it on my machine & it isn’t versioned in a repository (which has basically become my obsession). I wanted to find a solution that gave me these two things, and the flexibility to do anything else (such as in what markup to write the posts). Continue Reading
I just want to share how I set up to do development on my Mac OS X machine, specifically, in my case, Java development, especially my use of a local Homebrew root. Continue Reading