1
0

fixing pitest failure by excluding purely generated code etc.

also removed unused methods and added a unit test to improve coverage
and setting thresholds now to 90% each
This commit is contained in:
Michael Hoennig
2019-04-21 11:53:30 +02:00
parent 1ac8df5ed9
commit 1bc7044527
4 changed files with 36 additions and 43 deletions

View File

@@ -0,0 +1,15 @@
package org.hostsharing.hsadminng.service.dto;
import org.junit.Test;
import static org.assertj.core.api.Assertions.assertThat;
public class MembershipDTOTest {
@Test
public void withShouldApplyCallback() {
final MembershipDTO actual = new MembershipDTO().with(m -> m.setRemark("Some Remark"));
assertThat(actual.getRemark()).isEqualTo("Some Remark");
}
}