use of io.github.resilience4j.bulkhead.BulkheadConfig in project resilience4j by resilience4j.
the class SemaphoreBulkheadTest method testCreateWithNullConfig.
@Test
public void testCreateWithNullConfig() {
// given
Supplier<BulkheadConfig> configSupplier = () -> null;
// when
Bulkhead bulkhead = Bulkhead.of("test", configSupplier);
// then
assertThat(bulkhead).isNotNull();
assertThat(bulkhead.getBulkheadConfig()).isNotNull();
}
Aggregations