The PaxExam documentation says the following:
The test class may contain one or more methods annotated by @Configuration, returning a list of options for configuring the test container.
If there is more than one configuration method, each test method is run for each configuration.
The documentation says nothing about the following two situations (last is really more important):
- What if two or more of those methods return options setting the same property? Is there an ordering defined? Which one takes precedence?
- What if there is a @Configuration method in the base class, and also in the subclass? Will duplicate settings in the subclass override the settings in the base class?
I know I could just do it and see what happens, but I need guarantees, not guesses.