By Chris on May 19, 2021
This is old news, but having work with big bank and insurance companies they tend to stick with the old version of java and they’re underlying libraries, I’ve finally been expose to new ways of testing exception with junit. I use to test exception by adding an expected right after the @Test annotation.@Test(expected = NullpointerException) […]
Posted in java | Tagged assertJ, java, junit, junit4, junit5, mokito, testing |
By Chris on May 12, 2021
We recently added a feature that allowed direct modification on our content for some client vs using the same path (queues) that the batched content is using. Our user were really happy with it, but after our team implemented the new feature, we started having some LazyInitializationException. exception for that problem org.hibernate.LazyInitializationException: could not initialize […]
Posted in java | Tagged Exception, hibernate, java, LazyInitializationException |
By Chris on March 2, 2021
Once upon a time an engineer with years of experience encounter something so basic he doesn’t understand why he didn’t encounter it sooner. This week we had a strange error in our log stating that should have a null values in a map. After some digging in the service where that log was found, it […]
Posted in java | Tagged java, java.util.Map, maps, null |
By Chris on February 10, 2021
I know 2019 is like light years away, but I haven’t had the time to write and you will see that I haven’t had much time to read either in 2019. Having a baby who doesn’t sleep will do that to you. How to be miserable I got this book after watching CGP Grey’s “7 […]
Posted in book | Tagged 2019, book, How to be miserable, The gift of failure, The storm before the storm |
Recent Comments