use of com.adobe.target.edge.client.TargetClient in project target-java-sdk by adobe.
the class DefaultTargetServiceTest method init.
@BeforeEach
void init() throws NoSuchFieldException {
ClientConfig clientConfig = ClientConfig.builder().organizationId(TEST_ORG_ID).telemetryEnabled(true).build();
TelemetryService telemetryService = new TelemetryService(clientConfig);
targetService = new DefaultTargetService(clientConfig, telemetryService);
TargetClient targetJavaClient = TargetClient.create(clientConfig);
FieldSetter.setField(targetService, targetService.getClass().getDeclaredField("targetHttpClient"), targetHttpClient);
FieldSetter.setField(targetJavaClient, targetJavaClient.getClass().getDeclaredField("targetService"), targetService);
}
Aggregations