Working on a legacy Logging class that uses Thread and a custom Log class singleton (that doesn’t even extend slf4j.Logger, but uses it. ummm . . . future refactor); the task was givern to me to test it. Looked in the pom and saw JMockit AND Mockito referenced, and no PowerMock. There were very few […]
Sometimes I’m on several projects with differing and complicated configs for Maven, and use a few different Eclipse/IDE installs to manage all the preferences between the projects. With many different leads can be different Check Style files, PMD rules sets, formatting rules, naming conventions etc. Why not just the same standards universally? Well, different projects […]
I set up a quick multi-thread query test for a complex model entity made of several hibernate table entities. What I was trying to accomplish was a faster retrieval by running the queries in parallel. Spring JPARepository is the underlying querying mechanism. Here’s the higher level entity: In my service method is the threading test. […]
Well it happened — a third party project team decided they’d configure a complicated settings.xml file, which resides in the .m2 folder on your local. But I already have projects that don’t like what they wrote in that file, so I had to create two: settings-common.xml for our projects settings-thirdparty.xml for their projects Now when […]
About reusable UI. I have a hard time believing it. The backend seems much simpler to me; conducive to patterns, more easily solvedd in some ways for representing domains. The complexity of the back and middle ware IMHO comes in with engineering, capability, scalability and new technologies. But UI? Oh my my my . . […]
I always get confused as to when it would be a good time to use verify. I also see verify thrown into tests for no reason at all, except maybe as a practice to remember the syntax. I had written a Spring validation class and a test, and since Errors is an interface and is […]
Before I get started on this, here is the solution I chose for setting up a 404 error trap in a Spring Web MVC (Spring 3.2). It may seem old school, but after hours of research and testing this is what works the best for my application. Solution In web.xml add something like this, you […]
With a Spring Web MVC controller endpoint in Java you cannot have an optional @PathVariable, so you have to do things old school. In my code I wanted a default sorting mechanism, if the caller of my endpoint didn’t put in any sort parameters. The sort (orderBy) parameters are the fields, and the direction of […]
I was looking at the WORLD the other day. 🙂 And thinking about these groups that want a really cool site. And I realized (after a few retail gigs) that these sites need copywriters — content makers — not more development. You ever run into one of these kind of sites — the start of […]
So it’s down to the wire. It’s launch day, your managers were barely able to control the unforeseen circumstances but got a launch window. The operations crew has all of the release notes and their process, and you the developer are sitting there on site or on the phone, VPN’d in to execute the software […]