testcontainers/testcontainers-java

Add getMappedPort(Integer originalPort, InternetProtocol protocol)

Open

#554 建立於 2018年1月23日

在 GitHub 查看
 (11 留言) (0 反應) (0 負責人)Java (7,535 star) (1,588 fork)batch import
good first issueresolution/acknowledgedtype/feature

描述

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

貢獻者指南