起こった問題
Testcontainers を使用していて、
caused by: java.lang.IllegalStateException: Mapped port can only be obtained after the container is started
が起きて、コンテナが起動できなかった。
解決策
なんてことはない。テストクラスの上に @Testcontainers
アノテーションをつけ忘れていただけだった。
Testcontainers を使用していて、
caused by: java.lang.IllegalStateException: Mapped port can only be obtained after the container is started
が起きて、コンテナが起動できなかった。
なんてことはない。テストクラスの上に @Testcontainers
アノテーションをつけ忘れていただけだった。