//
archives

Archive for

Changing annotation values at runtime

Sometime back last week, I was tasked with adding some reporters via annotations into a cucumber based test. So it all boiled down to “Altering annotations at runtime” [ I was trying to alter @CucumberOptions annotation wherein I was going to be adding one or more “plugins” attribute]. I had worked a lot with TestNG … Continue reading

A date with ThreadLocal

Very recently I was stuck amidst debugging a strange concurrency related problem. The code in question was making use of ThreadLocal, but it wasn’t behaving the way in which I was expecting it to. Without further adieu, lets look at a similar example which can simulate the problem that I had. As you can see, … Continue reading