Search in sources :

Example 6 with HelloWorldService

use of io.github.resilience4j.test.HelloWorldService in project resilience4j by resilience4j.

the class RateLimiterMetricsTest method setUp.

@Before
public void setUp() {
    metricRegistry = new MetricRegistry();
    helloWorldService = mock(HelloWorldService.class);
}
Also used : MetricRegistry(com.codahale.metrics.MetricRegistry) HelloWorldService(io.github.resilience4j.test.HelloWorldService) Before(org.junit.Before)

Example 7 with HelloWorldService

use of io.github.resilience4j.test.HelloWorldService in project resilience4j by resilience4j.

the class RetryMetricsTest method setUp.

@Before
public void setUp() {
    metricRegistry = new MetricRegistry();
    helloWorldService = mock(HelloWorldService.class);
}
Also used : MetricRegistry(com.codahale.metrics.MetricRegistry) HelloWorldService(io.github.resilience4j.test.HelloWorldService) Before(org.junit.Before)

Example 8 with HelloWorldService

use of io.github.resilience4j.test.HelloWorldService in project resilience4j by resilience4j.

the class TimerTest method setUp.

@Before
public void setUp() {
    metricRegistry = new MetricRegistry();
    timer = Timer.ofMetricRegistry(TimerTest.class.getName(), metricRegistry);
    helloWorldService = mock(HelloWorldService.class);
}
Also used : MetricRegistry(com.codahale.metrics.MetricRegistry) HelloWorldService(io.github.resilience4j.test.HelloWorldService) Before(org.junit.Before)

Aggregations

HelloWorldService (io.github.resilience4j.test.HelloWorldService)8 Before (org.junit.Before)8 MetricRegistry (com.codahale.metrics.MetricRegistry)5 API (io.vavr.API)3 Try (io.vavr.control.Try)3 WebServiceException (javax.xml.ws.WebServiceException)3 Test (org.junit.Test)3 IntervalFunction (io.github.resilience4j.retry.IntervalFunction)2 Retry (io.github.resilience4j.retry.Retry)2 RetryConfig (io.github.resilience4j.retry.RetryConfig)2 Predicates (io.vavr.Predicates)2 Assertions.assertThat (org.assertj.core.api.Assertions.assertThat)2 BDDMockito (org.mockito.BDDMockito)2 Mockito (org.mockito.Mockito)2 API.$ (io.vavr.API.$)1 CheckedFunction0 (io.vavr.CheckedFunction0)1 CheckedRunnable (io.vavr.CheckedRunnable)1 Predicates.instanceOf (io.vavr.Predicates.instanceOf)1 Duration (java.time.Duration)1 Callable (java.util.concurrent.Callable)1