Giriş
Şu satırı dahil ederiz
import org.testcontainers.containers.Neo4jContainer;
withoutAuthentication metodu
Örnek
Şöyle yaparız
import org.testcontainers.utility.DockerImageName;Neo4jContainer<?> container = new Neo4jContainer<>(DockerImageName.parse("neo4j:5.5.0")).withoutAuthentication();String url = container.getBoltUrl()
withLogConsumer metodu
Örnek
Şöyle yaparız
import org.testcontainers.containers.output.Slf4jLogConsumer; public static final Neo4jContainer<?> container = new Neo4jContainer<>(DockerImageName.parse("neo4j:5.5.0")) .withoutAuthentication() .withLogConsumer(new Slf4jLogConsumer(LOGGER).withPrefix("Docker"));
Hiç yorum yok:
Yorum Gönder