private static final String INDEX_SHOULD_BE_IN_RANGE_FROM_1_TO_5 = "Index should be in range from 1 to 5";
- private Integer id;
+ private Long id;
private String metricKey;
// Nothing here
}
- public Integer getId() {
+ public Long getId() {
return id;
}
- public MeasureDto setId(Integer id) {
+ public MeasureDto setId(Long id) {
this.id = id;
return this;
}
MeasureDto result = results.get(0);
assertThat(result.getId()).isEqualTo(22);
assertThat(result.getValue()).isEqualTo(10d);
- assertThat(result.getKey()).isNotNull();
+ assertThat(result.getKey()).isEqualTo(MeasureKey.of("org.struts:struts-core:src/org/struts/RequestContext.java", "ncloc"));
assertThat(result.getVariation(1)).isEqualTo(1d);
assertThat(result.getVariation(2)).isEqualTo(2d);
assertThat(result.getVariation(3)).isEqualTo(3d);