Passed
Push — master ( 93a836...a92af1 )
by Tomasz
03:51
created

ContractValidationReportDto

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 13
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
addInteractions 0 2 ?
A dev.hltech.dredd.interfaces.rest.validation.ContractValidationReportDto.addInteractions(List) 0 2 1
A dev.hltech.dredd.interfaces.rest.validation.ContractValidationReportDto.ContractValidationReportDto(ConsumerAndProviderDto) 0 2 1
1
package dev.hltech.dredd.interfaces.rest.validation;
2
3
import com.google.common.collect.Lists;
4
import lombok.Getter;
5
6
import java.util.List;
7
8
@Getter
9
public class ContractValidationReportDto {
10
11
    private ConsumerAndProviderDto consumerAndProvider;
12
13
    private List<InteractionValidationReportDto> interactions = Lists.newLinkedList();
14
15
    public ContractValidationReportDto(ConsumerAndProviderDto consumerAndProvider) {
16
        this.consumerAndProvider = consumerAndProvider;
17
    }
18
19
    public void addInteractions(List<InteractionValidationReportDto> interactions) {
20
        this.interactions.addAll(interactions);
21
    }
22
23
}
24