Closed lbroudoux closed 9 months ago
As of today, we only have basic types as signature within the TestRequest.Builder utility:
TestRequest.Builder
timeout
runnerType
Those are not very readable and we have to describe things like this:
TestRequest otherTestRequestDTO = new TestRequest.Builder() .serviceId("Pastry orders API:0.1.0") .runnerType(TestRunnerType.ASYNC_API_SCHEMA.name()) .testEndpoint("kafka://kafka:19092/pastry-orders") .timeout(3000L) .build();
It would be nice to be able to support explicit types like Duration and enumeration like TestRunnerType. That way, we will be able to write things like:
Duration
TestRunnerType
TestRequest otherTestRequestDTO = new TestRequest.Builder() .serviceId("Pastry orders API:0.1.0") .runnerType(TestRunnerType.ASYNC_API_SCHEMA) .testEndpoint("kafka://kafka:19092/pastry-orders") .timeout(Duration.ofSeconds(3)) .build();
No response
Reason/Context
As of today, we only have basic types as signature within the
TestRequest.Builder
utility:timeout
is a long,runnerType
is a stringThose are not very readable and we have to describe things like this:
Description
It would be nice to be able to support explicit types like
Duration
and enumeration likeTestRunnerType
. That way, we will be able to write things like:Implementation ideas
No response