io.diagrid.dapr.DaprLocal Maven / Gradle / Ivy
package io.diagrid.dapr;
import org.springframework.test.context.DynamicPropertyRegistry;
import org.springframework.test.context.DynamicPropertySource;
import org.testcontainers.junit.jupiter.Container;
public interface DaprLocal {
@Container
DaprContainer dapr = new DaprContainer("daprio/daprd")
.withAppName("local-dapr-app");
@DynamicPropertySource
static void daprProperties(DynamicPropertyRegistry registry) {
System.setProperty("dapr.grpc.port", Integer.toString(dapr.getGRPCPort()));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy