You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my use case I configure a container using withExposedPorts method and then process this container in common code by exposing one more port. I would like to call addExposedPort, but this fails with exception:
java.lang.UnsupportedOperationException
at java.util.AbstractList.add(AbstractList.java:148)
at java.util.AbstractList.add(AbstractList.java:108)
at org.testcontainers.containers.GenericContainer.addExposedPort(GenericContainer.java:532)
So I have to first get all exposed ports, add new one and call withExposedPorts again.
If the code in withExposedPorts would be changed from
In my use case I configure a container using
withExposedPorts
method and then process this container in common code by exposing one more port. I would like to calladdExposedPort
, but this fails with exception:So I have to first get all exposed ports, add new one and call
withExposedPorts
again.If the code in
withExposedPorts
would be changed fromto
or to
this would solve the problem.
The text was updated successfully, but these errors were encountered: