SectorRequestBuilder.java

1
package pl.zankowski.iextrading4j.client.rest.request.refdata.v1;
2
3
import pl.zankowski.iextrading4j.api.refdata.v1.Sector;
4
import pl.zankowski.iextrading4j.client.rest.manager.RestRequest;
5
import pl.zankowski.iextrading4j.client.rest.manager.RestRequestBuilder;
6
import pl.zankowski.iextrading4j.client.rest.request.AbstractRequestFilterBuilder;
7
import pl.zankowski.iextrading4j.client.rest.request.IEXCloudV1RestRequest;
8
9
import javax.ws.rs.core.GenericType;
10
import java.util.List;
11
12
public class SectorRequestBuilder extends AbstractRequestFilterBuilder<List<Sector>, SectorRequestBuilder>
13
        implements IEXCloudV1RestRequest<List<Sector>> {
14
15
    @Override
16
    public RestRequest<List<Sector>> build() {
17 1 1. build : replaced return value with null for pl/zankowski/iextrading4j/client/rest/request/refdata/v1/SectorRequestBuilder::build → KILLED
        return RestRequestBuilder.<List<Sector>>builder()
18
                .withPath("/ref-data/sectors").get()
19
                .withResponse(new GenericType<List<Sector>>() {})
20
                .addQueryParam(getFilterParams())
21
                .build();
22
    }
23
24
}

Mutations

17

1.1
Location : build
Killed by : pl.zankowski.iextrading4j.client.rest.request.refdata.v1.SectorRequestBuilderTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.client.rest.request.refdata.v1.SectorRequestBuilderTest]/[method:shouldSuccessfullyCreateSectorRequest()]
replaced return value with null for pl/zankowski/iextrading4j/client/rest/request/refdata/v1/SectorRequestBuilder::build → KILLED

Active mutators

Tests examined


Report generated by PIT 1.7.1