Skip to content

Commit

Permalink
Merge pull request #276 from mberndt123/add-first-mapped-port
Browse files Browse the repository at this point in the history
add firstMappedPort method
  • Loading branch information
dimafeng authored Mar 4, 2024
2 parents 97f41f2 + d184941 commit d185f38
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ abstract class SingleContainer[T <: JavaGenericContainer[_]] extends TestContain

def mappedPort(port: Int): Int = container.getMappedPort(port)

def firstMappedPort: Int = container.getFirstMappedPort()

def portBindings: Seq[String] = container.getPortBindings.asScala.toSeq

def boundPortNumbers: Seq[Int] = container.getBoundPortNumbers.asScala.toSeq.map(_.intValue())
Expand Down

0 comments on commit d185f38

Please sign in to comment.