testcontainers/testcontainers-java
Add getMappedPort(Integer originalPort, InternetProtocol protocol)
开放
#554 创建于 2018年1月23日
good first issueresolution/acknowledgedtype/feature
仓库指标
- 星标
- (7,535 个星标)
- PR 合并指标
- (平均合并 2天 17小时) (30 天内合并 2 个 PR)
描述
It will just look so much nicer in my test than
genericContainer.getContainerInfo().getNetworkSettings().getPorts().getBindings().get(new ExposedPort(originalPort, protocol))[0].getHostPortSpec()
I think it has something to do with the law of demeter.
But in all fairness root cause is https://github.com/moby/moby/issues/4635