-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JAMES-3140 Add a per server testing builder #3531
JAMES-3140 Add a per server testing builder #3531
Conversation
It hides the generic typing complexity of the JamesServerBuilder and addresses testing configuration duplication while still exposing module combination configuration in every test.
88524b8
to
da18061
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems nice
test this please |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fail to see what's the point of this PR. It looks like a builder call extraction (anti-pattern ?) dealing with a single type of Server.
What do we gain?
Fixed elsewhere. test this please |
#3531 (comment) explains this. The team tend to like this proposal. |
Ok, let's ask more precise questions
What typing complexity? In this PR it's always used with a single type, right?
I understand it puts in common these 3 lines :
does it do more that than? |
It turns:
Into
Which is simpler. As we might get more options in the future, we could add staged builders to make writing integration test easier. |
Are you arguing Sorry, I don't buy that.
What about just making the real server builder good enough that we don't need another layer to abstract it? |
Sounds hard. The server builder (generic) don't know which configuration builder to be using (specific) Suggestions? |
Nested builders.
|
Sorry, we end up with something specific anyway, I don't see how it differ from what is proposed here. |
See #3568 |
It hides the generic typing complexity of the JamesServerBuilder
and addresses testing configuration duplication while still exposing
module combination configuration in every test.