Hmm, in this particular case I’m testing a logger handler so it makes sense to intentionally create a problem. But I guess I can always just throw an exception instead. I wonder if there are cases where we have to write code that produces warnings to test something. Curious to see how it plays out!
4 Likes






















