Search in sources :

Example 1 with TargetClient

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);
}
Also used : ClientConfig(com.adobe.target.edge.client.ClientConfig) TargetClient(com.adobe.target.edge.client.TargetClient) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

ClientConfig (com.adobe.target.edge.client.ClientConfig)1 TargetClient (com.adobe.target.edge.client.TargetClient)1 BeforeEach (org.junit.jupiter.api.BeforeEach)1