假設我有一個抽象類,稱爲AbstractTestWithNetwork規則: @RunWith(JUnit4.class)
public abstract class AbstractTestWithNetwork {
@ClassRule
public static Network network = Network.newNetwork();
@ClassR
我試圖對dockered數據庫運行dropwizard的集成測試。 Dropwizard Testcontainers 我已經試過: @ClassRule
public static final PostgreSQLContainer postgres = new PostgreSQLContainer();
@ClassRule
public final DropwizardAp