Search in sources :

Example 1 with Telemetry

use of org.eclipse.dataspaceconnector.spi.telemetry.Telemetry in project DataSpaceConnector by eclipse-dataspaceconnector.

the class DefaultServiceExtensionContextTest method setUp.

@BeforeEach
void setUp() {
    TypeManager typeManager = new TypeManager();
    Monitor monitor = mock(Monitor.class);
    Telemetry telemetry = new Telemetry();
    context = new DefaultServiceExtensionContext(typeManager, monitor, telemetry, List.of(configuration));
}
Also used : Monitor(org.eclipse.dataspaceconnector.spi.monitor.Monitor) TypeManager(org.eclipse.dataspaceconnector.spi.types.TypeManager) Telemetry(org.eclipse.dataspaceconnector.spi.telemetry.Telemetry) BeforeEach(org.junit.jupiter.api.BeforeEach)

Example 2 with Telemetry

use of org.eclipse.dataspaceconnector.spi.telemetry.Telemetry in project DataSpaceConnector by eclipse-dataspaceconnector.

the class ParallelSinkTest method setup.

@BeforeEach
void setup() {
    fakeSink = new FakeParallelSink();
    fakeSink.monitor = monitor;
    // default noop implementation
    fakeSink.telemetry = new Telemetry();
    fakeSink.executorService = executor;
    fakeSink.requestId = UUID.randomUUID().toString();
}
Also used : Telemetry(org.eclipse.dataspaceconnector.spi.telemetry.Telemetry) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

Telemetry (org.eclipse.dataspaceconnector.spi.telemetry.Telemetry)2 BeforeEach (org.junit.jupiter.api.BeforeEach)2 Monitor (org.eclipse.dataspaceconnector.spi.monitor.Monitor)1 TypeManager (org.eclipse.dataspaceconnector.spi.types.TypeManager)1