Use the ReflectionSupport for the reflection stuff.
Add an ErsatzConfig annotation that may be applied to a test method - it will defined a property or field name that will contain a ServerConfig definition. This definition will be used to configure the server rather than the default one.
Would it be useful to have a ParameterResolver that would provide the server port (or other values)?
A few minor refactorings:
ReflectionSupport
for the reflection stuff.ErsatzConfig
annotation that may be applied to a test method - it will defined a property or field name that will contain aServerConfig
definition. This definition will be used to configure the server rather than the default one.ParameterResolver
that would provide the server port (or other values)?