79809486

Date: 2025-11-04 23:28:23
Score: 0.5
Natty:
Report link

I think I understand the problem. Groovy's Map coercion doesn't work on concrete types. Since the SpringApplicationBuilder is a concrete type, it instead tries to instantiate it, but because there's no default constructor it fails. When I tried Map coercion on a type that has a default constructor, it instantiates fine, but then my mocked methods aren't actually run.

TL;DR? I had to give up.

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: bmauter