Replies: 2 comments
-
|
The reason port fields in modules like
For the Arconia use case, if you need to extend a module and reference the port: public class CustomPostgresContainer extends PostgreSQLContainer<CustomPostgresContainer> {
private static final int CUSTOM_PORT = 5432;
public CustomPostgresContainer() {
super();
addExposedPort(CUSTOM_PORT);
}
}Alternatively, you could open a PR to add |
Beta Was this translation helpful? Give feedback.
-
|
placeholder |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to contribute to Arconia and noticed that the port number in the different Container classes are private.
E.g. for
RabbitMQContainerThis causes some duplication of code when such as class is extended and the subclass has the add those constants again.
Would it be possible to be a bit more lenient with the access and change it to
protected?Beta Was this translation helpful? Give feedback.
All reactions