use of com.linkedin.parseq.ParSeqUnitTestHelper in project rest.li by linkedin.
the class TestParseqBasedFluentClientApiWithProjections method setUp.
@BeforeClass
void setUp() throws Exception {
super.init(Arrays.asList(new RestLiValidationFilter()));
_parSeqUnitTestHelper = new ParSeqUnitTestHelper();
_parSeqUnitTestHelper.setUp();
_parSeqRestliClient = new ParSeqRestliClientBuilder().setClient(getClient()).setConfig(new ParSeqRestliClientConfigBuilder().build()).build();
}
use of com.linkedin.parseq.ParSeqUnitTestHelper in project rest.li by linkedin.
the class MockBatchingStrategy method setup.
@BeforeClass
public void setup() throws Exception {
_parSeqUnitTestHelper = new ParSeqUnitTestHelper();
_parSeqUnitTestHelper.setUp();
_engine = _parSeqUnitTestHelper.getEngine();
}
use of com.linkedin.parseq.ParSeqUnitTestHelper in project rest.li by linkedin.
the class TestParSeqBasedFluentClientApiWithExecutionGroup method setUp.
@BeforeClass
void setUp() throws Exception {
super.init(Arrays.asList(new RestLiValidationFilter()));
ParSeqRestliClientConfig config = new ParSeqRestliClientConfigBuilder().addBatchingEnabled("*.*/*.*", Boolean.TRUE).addMaxBatchSize("*.*/*.*", TEST_BATCH_SIZE).build();
BatchingSupport batchingSupport = new BatchingSupport();
_parSeqUnitTestHelper = new ParSeqUnitTestHelper(engineBuilder -> {
engineBuilder.setPlanDeactivationListener(batchingSupport);
});
_parSeqUnitTestHelper.setUp();
_parSeqRestliClient = // RestClient Registered Strategy
new ParSeqRestliClientBuilder().setBatchingSupport(batchingSupport).setClient(getClient()).setConfig(config).build();
}
use of com.linkedin.parseq.ParSeqUnitTestHelper in project rest.li by linkedin.
the class TestParseqBasedFluentClientApi method setUp.
@BeforeClass
void setUp() throws Exception {
super.init();
_parSeqUnitTestHelper = new ParSeqUnitTestHelper();
_parSeqUnitTestHelper.setUp();
_parSeqRestliClient = new ParSeqRestliClientBuilder().setClient(getClient()).setConfig(new ParSeqRestliClientConfigBuilder().build()).build();
}
use of com.linkedin.parseq.ParSeqUnitTestHelper in project rest.li by linkedin.
the class TestParSeqBasedCompletionStage method setup.
@BeforeClass
public void setup() throws Exception {
_parSeqUnitTestHelper = new ParSeqUnitTestHelper();
_parSeqUnitTestHelper.setUp();
_engine = _parSeqUnitTestHelper.getEngine();
_parSeqBasedCompletionStageFactory = new ParSeqBasedCompletionStageFactory<>(_engine);
}
Aggregations